:root {
    --bg-dark: #0f0f0f;
    --bg-secondary: #121212;
    --card-bg: #1c1c1c;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent: #00d9ff;
    --accent-glow: rgba(0, 217, 255, 0.2);
}

html { scroll-behavior: smooth; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    font-size: 16px;
}

/* --- HEADER --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(15, 15, 15, 0.98);
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo { font-size: 1.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
.logo span { color: var(--accent); }

nav ul { display: flex; align-items: center; list-style: none; gap: 30px; }
nav a { text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
nav a:hover { color: var(--accent); }

/* --- ORTAK BUTON --- */
.btn {
    display: inline-block; padding: 14px 40px; margin-top: 25px;
    border: 2px solid var(--accent); color: var(--accent); text-decoration: none;
    font-weight: 700; border-radius: 4px; transition: all 0.3s ease;
    text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem;
}
.btn:hover { background: var(--accent); color: #000; box-shadow: 0 0 25px var(--accent-glow); }
.btn-center { display: table; margin: 40px auto 0; }

/* --- BÖLÜM 1: HERO --- */
#hero { display: flex; align-items: center; justify-content: space-between; padding: 100px 8%; min-height: 90vh; gap: 60px; }
.hero-content { flex: 1; animation: fadeIn 1s ease-out; }
.hero-content h1 { font-size: 3.8rem; line-height: 1.2; margin-bottom: 25px; background: linear-gradient(120deg, #fff, #888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 30px; max-width: 650px; line-height: 1.8; }
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero-image img { width: 100%; max-width: 700px; height: auto; border-radius: 15px; box-shadow: 0 0 50px rgba(0, 217, 255, 0.1); border: 1px solid #333; filter: brightness(0.95); }

/* --- BÖLÜM 2: REHBER --- */
#how-to { background-color: var(--bg-secondary); padding: 100px 8%; text-align: center; border-top: 1px solid #222; }
.container { max-width: 1200px; margin: 0 auto; }
#how-to h2 { font-size: 2.8rem; margin-bottom: 50px; }
.info-box { text-align: left; }
.info-box > p { text-align: center; font-size: 1.2rem; margin-bottom: 40px; color: var(--text-muted); }
.steps { display: flex; gap: 30px; justify-content: center; }
.step { background: var(--card-bg); padding: 30px; border-radius: 10px; border: 1px solid #333; flex: 1; transition: transform 0.3s; }
.step:hover { transform: translateY(-5px); border-color: var(--accent); }
.step h3 { color: var(--accent); margin-bottom: 15px; font-size: 1.3rem; }
.step p { font-size: 0.95rem; color: var(--text-muted); }
.step em { display: block; margin-top: 10px; color: #fff; font-style: normal; background: #252525; padding: 8px; border-radius: 5px; font-family: monospace; }

/* --- BÖLÜM 3: KARTLAR --- */
#ai-cards { padding: 100px 5%; }
.container-fluid { max-width: 1300px; margin: 0 auto; }
#ai-cards h2 { text-align: center; font-size: 2.8rem; margin-bottom: 70px; }

/* 6 kart için 3 sütunlu yapıya geçildi */
.grid-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.card { 
    background: var(--card-bg); 
    padding: 35px; 
    border-radius: 12px; 
    border: 1px solid #333; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    transition: all 0.3s; 
    height: 100%; 
    min-height: 380px; 
    box-sizing: border-box; 
}
.card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 15px 40px rgba(0,0,0,0.6); }
.card-header { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 15px; border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 5px; align-self: flex-start; }
.card-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; }
.usage-badge { display: block; background: rgba(255, 255, 255, 0.05); color: var(--accent); padding: 10px; font-size: 0.8rem; border-radius: 6px; font-family: 'Courier New', monospace; border-left: 3px solid var(--accent); word-break: break-word; }
.card-btn { 
    text-align: center; 
    text-decoration: none; 
    background: #2a2a2a; 
    color: #fff; 
    padding: 12px; 
    border-radius: 6px; 
    transition: 0.3s; 
    font-weight: 600; 
    font-size: 0.9rem; 
    margin-top: 20px; 
    align-self: stretch; 
}
.card-btn:hover { background: var(--accent); color: #000; }

/* --- FOOTER --- */
footer { padding: 60px; text-align: center; border-top: 1px solid #222; background: var(--bg-secondary); color: #666; }
.socials { margin-top: 15px; font-size: 0.95rem; color: var(--text-main); word-spacing: 15px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   YENİ EKLENEN KODLAR: DETAY SAYFALARI VE PROMPT KÜTÜPHANESİ
   ========================================================================== */

/* --- MODEL DETAY SAYFALARI (KARTLI YAPI) --- */
.detail-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-out;
}

.detail-header {
    text-align: center;
    margin-bottom: 60px;
}

.detail-header h1 {
    font-size: 3.2rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.detail-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.detail-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.detail-card {
    background: var(--card-bg);
    border: 1px solid #333;
    padding: 35px;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.05);
}

.detail-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
}

.detail-card p, .detail-card ul {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

.detail-card ul {
    list-style-type: none;
}

.detail-card ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.detail-card ul li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    top: -2px;
}

.detail-card p strong {
    color: #e0e0e0;
}

.back-btn {
    display: table;
    margin: 0 auto;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.back-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* --- YENİ PROMPT KÜTÜPHANESİ SAYFASI --- */
#prompt-library {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

#prompt-library h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 10px;
}

.prompt-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.prompt-item {
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 30px;
    gap: 25px;
    transition: 0.3s;
}

.prompt-item:hover {
    border-color: var(--accent);
}

.prompt-text {
    flex: 1;
    min-width: 0;
}

.prompt-text h3 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.prompt-text p {
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    background: #151515;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    word-break: break-word;
    overflow-wrap: break-word;
}

.prompt-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px dashed #555;
    animation: float 4s ease-in-out infinite;
}

.prompt-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Animasyonlar */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); box-shadow: 0 10px 20px var(--accent-glow); }
    100% { transform: translateY(0px); }
}

/* ================================
   TABLET (1024px ve altı)
================================ */
@media (max-width: 1024px) {
    #hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 60px 5%;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-image img {
        max-width: 500px;
    }

    /* kartlar 2 sütun */
    .grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps {
        flex-direction: column;
    }
    
    .prompt-container {
        grid-template-columns: 1fr;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
    }
}

/* ================================
   MOBİL (768px ve altı)
================================ */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 5%;
    }

    nav {
        width: 100%;
    }

    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    nav a {
        font-size: 0.85rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    /* Kartlar tek sütun */
    .grid-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        min-height: auto;
        padding: 25px;
    }
    
    .card-header {
        font-size: 1.2rem;
    }
    
    .card-body p {
        font-size: 0.9rem;
    }
    
    .usage-badge {
        font-size: 0.75rem;
    }

    /* Prompt kütüphanesi */
    .prompt-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .prompt-image {
        width: 80px;
        height: 80px;
        order: -1;
        margin-bottom: 15px;
    }
    
    .prompt-text p {
        font-size: 0.85rem;
        padding: 12px;
    }
    
    /* Detay sayfaları */
    .detail-header h1 {
        font-size: 2rem;
    }
    
    .detail-card {
        padding: 25px;
    }
    
    .detail-card h3 {
        font-size: 1.2rem;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    /* Steps */
    .steps {
        gap: 20px;
    }
    
    .step {
        padding: 20px;
    }
    
    /* Footer */
    footer {
        padding: 40px 20px;
    }
    
    .socials {
        word-spacing: 10px;
        font-size: 0.85rem;
    }
}

/* ================================
   KÜÇÜK MOBİL (480px ve altı)
================================ */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 0.85rem;
    }
    
    #ai-cards h2,
    #prompt-library h2,
    #how-to h2 {
        font-size: 2rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .card-header {
        font-size: 1.1rem;
    }
    
    .usage-badge {
        font-size: 0.7rem;
        padding: 8px;
    }
    
    nav ul {
        gap: 10px;
    }
    
    nav a {
        font-size: 0.8rem;
    }
}
