/* AI Prompt Gallery — Ana stil dosyası
   Kurumsal palet, light tema, Plus Jakarta Sans
*/

:root {
    --c-ink: #2a2a2a;
    --c-ink-soft: #555;
    --c-mute: #888;
    --c-bg: #faf8f4;
    --c-card: #ffffff;
    --c-border: #e8e4dc;
    --c-border-soft: #f0ece4;

    --c-primary: #4a4e69;
    --c-primary-dark: #3a3e54;
    --c-accent: #6d597a;
    --c-warm: #723d46;
    --c-orange: #e76f51;
    --c-deep: #502f4c;
    --c-teal: #005f73;
    --c-mauve: #9a8c98;
    --c-plum: #70587c;

    --shadow-sm: 0 2px 8px rgba(74, 78, 105, 0.06);
    --shadow-md: 0 6px 24px rgba(74, 78, 105, 0.10);
    --shadow-lg: 0 16px 48px rgba(74, 78, 105, 0.14);

    --radius: 10px;
    --radius-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fraunces:ital,wght@0,400;0,600;1,400&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--c-bg);
    color: var(--c-ink);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-accent); }

img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.site-header .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: 1240px;
    margin: 0 auto;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: var(--c-primary);
    letter-spacing: -0.4px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-deep));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    box-shadow: var(--shadow-sm);
    font-family: 'Fraunces', serif;
}

.logo-text {
    line-height: 1.1;
}
.logo-text span {
    display: block;
    font-size: 11px;
    color: var(--c-mute);
    font-weight: 500;
    letter-spacing: .8px;
    text-transform: uppercase;
}

nav.top-nav {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

nav.top-nav a {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-ink-soft);
    border-radius: 6px;
    transition: all .2s;
}

nav.top-nav a:hover { background: var(--c-border-soft); color: var(--c-primary); }
nav.top-nav a.active { background: var(--c-primary); color: #fff; }

/* ---- Hero ---- */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, var(--c-bg) 100%);
    border-bottom: 1px solid var(--c-border);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(109, 89, 122, 0.08), transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(0, 95, 115, 0.06), transparent 45%);
    pointer-events: none;
}

.hero-inner { position: relative; max-width: 760px; margin: 0 auto; padding: 0 24px; }

.hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(74, 78, 105, 0.08);
    color: var(--c-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(36px, 6vw, 58px);
    font-weight: 600;
    line-height: 1.05;
    color: var(--c-ink);
    letter-spacing: -1.2px;
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: italic;
    color: var(--c-accent);
    font-weight: 400;
}

.hero p {
    font-size: 18px;
    color: var(--c-ink-soft);
    max-width: 560px;
    margin: 0 auto 36px;
}

.hero-stats {
    display: inline-flex;
    gap: 32px;
    padding: 18px 32px;
    background: #fff;
    border-radius: 100px;
    box-shadow: var(--shadow-md);
    margin-top: 8px;
}

.hero-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.hero-stats .num {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--c-primary);
}

.hero-stats .lbl { color: var(--c-mute); font-size: 13px; }

/* ---- Categories nav strip ---- */
.cat-strip {
    padding: 28px 0 8px;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
}

.cat-strip-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 22px;
    scrollbar-width: thin;
}

.cat-pill {
    flex-shrink: 0;
    padding: 9px 18px;
    border: 1.5px solid var(--c-border);
    background: #fff;
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--c-ink-soft);
    transition: all .2s;
    white-space: nowrap;
}

.cat-pill:hover { border-color: var(--c-accent); color: var(--c-accent); }
.cat-pill.active {
    background: var(--c-primary);
    color: #fff;
    border-color: var(--c-primary);
}

.cat-pill .count {
    margin-left: 6px;
    font-size: 11px;
    opacity: .7;
}

/* ---- Section header ---- */
.section-head {
    padding: 56px 0 28px;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section-head h2 {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--c-ink);
    letter-spacing: -0.6px;
    margin-bottom: 6px;
}

.section-head p { color: var(--c-mute); font-size: 15px; }

/* ---- Grid ---- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    padding: 8px 0 64px;
}

.card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--c-mauve);
}

.card-image {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #f4f1ec 0%, #e8e4dc 100%);
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--c-mauve);
    text-align: center;
    padding: 20px;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(154, 140, 152, 0.04) 12px, rgba(154, 140, 152, 0.04) 24px),
        linear-gradient(135deg, #f7f3ec 0%, #ede7dd 100%);
}

.card-image-empty svg {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    opacity: .55;
}

.card-image-empty .label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: .7;
}

.card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: var(--c-primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: .4px;
}

.card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card h3 {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--c-ink);
    line-height: 1.25;
    margin-bottom: 8px;
}

.card-tags {
    font-size: 12px;
    color: var(--c-mute);
    margin-bottom: 14px;
}

.card-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.card-btn {
    flex: 1;
    padding: 9px 14px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--c-ink-soft);
    cursor: pointer;
    text-align: center;
    transition: all .2s;
    font-family: inherit;
}

.card-btn:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.card-btn.primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.card-btn.primary:hover { background: var(--c-primary-dark); }

/* ---- Detail page ---- */
.detail-wrap {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    padding: 48px 0 80px;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (max-width: 880px) {
    .detail-wrap { grid-template-columns: 1fr; gap: 36px; }
}

.detail-image {
    background: linear-gradient(135deg, #f4f1ec 0%, #e8e4dc 100%);
    border-radius: var(--radius-lg);
    aspect-ratio: 4/5;
    overflow: hidden;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.detail-image img { width: 100%; height: 100%; object-fit: cover; }

.detail-meta { margin-bottom: 22px; }
.detail-meta .crumb {
    color: var(--c-mute);
    font-size: 13px;
    margin-bottom: 16px;
}
.detail-meta .crumb a { color: var(--c-accent); }

.detail-meta h1 {
    font-family: 'Fraunces', serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.8px;
    color: var(--c-ink);
    margin-bottom: 12px;
}

.detail-meta .tags {
    display: inline-block;
    color: var(--c-mauve);
    font-size: 13px;
    font-weight: 500;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--c-border);
    margin-bottom: 18px;
}

.tab-btn {
    padding: 11px 22px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--c-mute);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}

.tab-btn:hover { color: var(--c-ink); }
.tab-btn.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.prompt-box {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 22px;
    position: relative;
}

.prompt-box pre {
    font-family: 'Plus Jakarta Sans', monospace;
    font-size: 14px;
    line-height: 1.7;
    color: var(--c-ink);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.prompt-box.json pre {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #2a2a2a;
}

.copy-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 14px;
    background: var(--c-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .2s;
}

.copy-btn:hover { background: var(--c-primary-dark); }
.copy-btn.copied { background: #2e7d32; }

.usage-tip {
    background: #fff8e1;
    border-left: 3px solid #e76f51;
    padding: 14px 18px;
    border-radius: 4px;
    margin-bottom: 22px;
    font-size: 14px;
    color: #6d4634;
}

.usage-tip strong { color: var(--c-warm); }

/* ---- Pagination ---- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 32px 0 60px;
}

.pagination a, .pagination span {
    padding: 9px 14px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 7px;
    font-size: 13px;
    color: var(--c-ink-soft);
    min-width: 38px;
    text-align: center;
    font-weight: 500;
}

.pagination a:hover { background: var(--c-bg); border-color: var(--c-mauve); }
.pagination .current { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.pagination .disabled { opacity: .35; cursor: not-allowed; }

/* ---- Footer ---- */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--c-border);
    padding: 56px 0 28px;
    margin-top: 60px;
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
    font-size: 13.5px;
    color: var(--c-mute);
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 13px;
    color: var(--c-ink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
    font-size: 13.5px;
    color: var(--c-ink-soft);
    transition: color .2s;
}
.footer-col ul a:hover { color: var(--c-accent); }

.footer-bottom {
    max-width: 1240px;
    margin: 36px auto 0;
    padding: 24px 24px 0;
    border-top: 1px solid var(--c-border-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--c-mute);
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---- Empty state ---- */
.empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--c-mute);
}
.empty h3 { color: var(--c-ink); margin-bottom: 8px; font-family: 'Fraunces', serif; font-weight: 600; }

/* ---- Responsive tweaks ---- */
@media (max-width: 600px) {
    .hero { padding: 48px 0 36px; }
    .hero-stats { gap: 18px; padding: 14px 22px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .card-body { padding: 14px; }
    .card h3 { font-size: 15px; }
    .detail-meta h1 { font-size: 28px; }
}
