
/* 1. KUTULARIN KÜÇÜLMESİNİ ENGELLEME (Fix Grid) */
    .dashboard-grid { 
        display: grid; 
        grid-template-columns: 350px 1fr; 
        gap: 30px; 
        margin-top: 40px; 
        align-items: start; 
    }
    .r-item {
        /* Kutuların minimum yüksekliği ve genişliği olsun */
        min-height: 80px;
        display: flex;
        align-items: center; /* İkon ve metni ortala */
    }
    
    /* 2. EKRAN GÖRÜNTÜSÜ ALANI */
    .screenshot-wrapper {
        text-align: center;
        margin-bottom: 30px;
        perspective: 1000px;
    }
    .phone-mockup {
        display: inline-block;
        border: 12px solid #1e293b;
        border-radius: 30px;
        overflow: hidden;
        background: #000;
        box-shadow: 0 20px 50px rgba(0,0,0,0.3);
        width: 280px; /* Telefon genişliği */
        transform: rotateY(-5deg) rotateX(5deg);
        transition: 0.5s;
    }
    .phone-mockup:hover { transform: rotateY(0) rotateX(0); }
    .site-preview-img { width: 100%; display: block; }

    /* Mobilde Grid Tek Kolon */
    @media (max-width: 900px) {
        .dashboard-grid { grid-template-columns: 1fr; }
        .phone-mockup { width: 220px; }
    }




    .analiz-page-wrapper { padding: 100px 0 80px; position: relative; overflow-x: hidden; }
    .container-aiseo { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
    
    .page-bg-decoration {
        position: absolute; top: 0; left: 0; width: 100%; height: 500px;
        background: linear-gradient(180deg, #eff6ff 0%, var(--bg-page) 100%);
        z-index: 1; pointer-events: none;
    }

    /* 2. HERO SECTION */
    .hero-section-seo { text-align: center; margin-bottom: 50px; }
    .badge-pill { 
        display: inline-block; background: #f1f5f9; color: #000; 
        padding: 6px 16px; border-radius: 50px; font-weight: 600; font-size: 0.85rem; margin-bottom: 20px;
    }
    .hero-section-seo h1 { font-size: 2.4rem; font-weight: 800;  color: #fff; margin-bottom: 15px; letter-spacing: -1px; }
    .highlight { color: var(--primary); }
    .hero-section-seo p { font-size: 1.15rem; color: var(--text-gray); max-width: 600px; margin: 0 auto 30px; }

    /* Arama Kutusu */
    .search-box-wrapper { max-width: 700px; margin: 0 auto; }
    .search-box {
        background: #fff; border: 1px solid var(--border-color); border-radius: 100px;
        padding: 6px; display: flex; align-items: center; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
        transition: 0.3s;
    }
    .search-box:focus-within { border-color: var(--primary); box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.15); }
    .search-icon { padding-left: 20px; color: #94a3b8; font-size: 1.2rem; }
    .search-box input {
        flex: 1; border: none; outline: none; padding: 14px 15px; font-size: 1.05rem; color: var(--text-dark); background: transparent;
    }
    .btn-analyze {
        background: var(--primary); color: #fff; border: none; padding: 12px 30px;
        border-radius: 50px; font-weight: 600; cursor: pointer; transition: 0.2s; font-size: 1rem;
        display: flex; align-items: center; gap: 8px;
    }
    .btn-analyze:hover {color: #000; transform: translateY(-1px); }
  .features-section { background: var(--primary); border: none; padding: 6px 6px;}
    .trust-indicators { margin-top: 25px; display: flex; justify-content: center; gap: 20px; font-size: 0.9rem; color: var(--text-gray); }
    .trust-indicators span i { color: #10b981; margin-right: 5px; }

    /* 3. ÖN BİLGİ KARTLARI */
    .features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .f-card {
        background: #fff; padding: 25px 20px; border-radius: var(--radius);
        border: 1px solid var(--border-color); text-align: center; transition: 0.3s;
    }
    .f-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }
    .f-icon {
        width: 48px; height: 48px; border-radius: 12px; margin: 0 auto 15px;
        display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
    }
    .c-blue { background: #eff6ff; color: var(--primary); }
    .c-orange { background: #fff7ed; color: #f59e0b; }
    .c-green { background: #f0fdf4; color: #10b981; }
    .c-purple { background: #faf5ff; color: #a855f7; }
    
    .f-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
    .f-card p { font-size: 0.85rem; color: var(--text-gray); line-height: 1.5; }

    /* 4. DASHBOARD */
    .dashboard-wrapper { display: grid; grid-template-columns: 320px 1fr; gap: 30px; margin-top: 40px; }
    
    /* Sidebar */
    .score-card {
        background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius);
        padding: 30px; box-shadow: var(--shadow-sm);
    }
    .sticky-card { position: sticky; top: 100px; }
    .card-head { text-align: center; font-size: 1.1rem; color: var(--text-dark); margin: 0 0 20px; }
    
    .gauge-chart { position: relative; width: 160px; height: 160px; margin: 0 auto 25px; }
    .progress-ring { transform: rotate(-90deg); }
    .ring-bg { fill: none; stroke: #f1f5f9; }
    .ring-fill { fill: none; stroke: var(--primary); stroke-dasharray: 440; stroke-dashoffset: 440; transition: stroke-dashoffset 1s ease; }
    .gauge-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
    .gauge-center span { font-size: 3.5rem; font-weight: 800; color: var(--text-dark); line-height: 1; display: block; }
    .gauge-center small { font-size: 0.8rem; font-weight: 700; color: var(--text-gray); }

    .score-details { margin-bottom: 25px; }
    .sd-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; color: var(--text-gray); }
    .sd-row > span:first-child { width: 70px; }
    .sd-track { flex: 1; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
    .sd-bar { height: 100%; width: 0%; transition: 1s; }
    .sd-bar.blue { background: var(--primary); }
    .sd-bar.yellow { background: #f59e0b; }
    .sd-bar.red { background: #ef4444; }
    .sd-val { width: 30px; text-align: right; font-weight: 600; color: var(--text-dark); }

    .sidebar-btns { display: flex; flex-direction: column; gap: 10px; }
    .btn-primary-block {
        display: block; text-align: center; background: var(--primary); color: #fff;
        padding: 12px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: 0.2s;
    }
    .btn-primary-block:hover { background: var(--primary-hover); }
    .btn-outline-block {
        display: block; text-align: center; background: #fff; color: var(--text-dark);
        border: 1px solid var(--border-color); padding: 12px; border-radius: 8px; font-weight: 600;
        text-decoration: none; transition: 0.2s;
    }
    .btn-outline-block:hover { background: #f8fafc; border-color: #cbd5e1; }

    /* Content Area Styles (JS ile dolacak kısımlar) */
    .result-group { margin-bottom: 30px; }
    .group-title { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
    
    .r-item {
        background: #fff; border: 1px solid var(--border-color); border-radius: 10px;
        padding: 18px; margin-bottom: 12px; display: flex; gap: 15px; align-items: flex-start;
        transition: 0.2s;
    }
    .r-item:hover { transform: translateX(3px); border-color: #cbd5e1; }
    .r-item.success i { color: #10b981; } .r-item.success { border-left: 4px solid #10b981; }
    .r-item.warning i { color: #f59e0b; } .r-item.warning { border-left: 4px solid #f59e0b; }
    .r-item.error i { color: #ef4444; }   .r-item.error { border-left: 4px solid #ef4444; }
    
    .ri-content h4 { margin: 0 0 4px; font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }
    .ri-content p { margin: 0; font-size: 0.85rem; color: var(--text-gray); }
    .res-data {
        background: #f1f5f9; padding: 6px 10px; border-radius: 6px; font-family: monospace;
        font-size: 0.8rem; color: #475569; margin-top: 6px; display: inline-block; word-break: break-all;
    }

    /* AI Box */
    .ai-box {
        background: #fff; border: 1px solid #e0e7ff; border-radius: var(--radius);
        padding: 25px; border-left: 4px solid #8b5cf6; margin-bottom: 30px;
        box-shadow: var(--shadow-sm);
    }
    .ai-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
    .ai-header h4 { margin: 0; color: #5b21b6; font-size: 1.1rem; }
    .ai-content { color: #334155; line-height: 1.6; font-size: 0.95rem; }
    .ai-content ul { padding-left: 20px; margin: 10px 0; }
    
    /* Vitals Grid */
    .vitals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-bottom: 20px; }
    .vital-card {
        background: #fff; border: 1px solid var(--border-color); padding: 15px; border-radius: 10px;
        display: flex; align-items: center; gap: 12px;
    }
    .v-val { font-size: 1.4rem; font-weight: 800; color: var(--text-dark); line-height: 1; display: block; }
    .v-lbl { font-size: 0.75rem; color: var(--text-gray); font-weight: 700; text-transform: uppercase; }

    /* Loader */
    #analizLoader { text-align: center; padding: 80px 0; }
    .spinner-ring {
        width: 50px; height: 50px; border: 4px solid #e2e8f0; border-top-color: var(--primary);
        border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px;
    }
    @keyframes spin { 100% { transform: rotate(360deg); } }

    /* Alert */
    .alert-box { background: #eff6ff; color: #1e40af; padding: 15px; border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }

    /* Responsive */
    @media (max-width: 900px) {
        .features-grid { grid-template-columns: 1fr 1fr; }
        .dashboard-wrapper { grid-template-columns: 1fr; }
        .score-card { order: -1; position: static; margin-bottom: 30px; } /* Skor üstte */
        .hero-section-seo h1 { font-size: 2rem; }
    }
    @media (max-width: 600px) {
        .features-grid { grid-template-columns: 1fr; }
    }


    
    /* 1. TOAST BİLDİRİM SİSTEMİ (Modern Uyarılar) */
    .toast-container {
        position: fixed; top: 20px; right: 20px; z-index: 9999;
        display: flex; flex-direction: column; gap: 10px;
    }
    .toast {
        min-width: 300px; padding: 16px 20px; border-radius: 12px;
        background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        display: flex; align-items: center; gap: 12px;
        animation: slideIn 0.3s ease-out forwards;
        border-left: 5px solid #3b82f6; font-size: 0.95rem; color: #1e293b;
    }
    .toast.success { border-color: #10b981; }
    .toast.error { border-color: #ef4444; }
    .toast.warning { border-color: #f59e0b; }
    
    .toast i { font-size: 1.2rem; }
    .toast.success i { color: #10b981; }
    .toast.error i { color: #ef4444; }
    
    @keyframes slideIn {
        from { transform: translateX(100%); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }
    @keyframes slideOut {
        to { transform: translateX(100%); opacity: 0; }
    }
/* TOAST BİLDİRİM DÜZELTMESİ (Görünürlük) */
.toast-container { z-index: 10000; } /* En üstte kalsın */

.toast {
    background: #1e293b; /* Koyu Lacivert Zemin */
    color: #fff;         /* Beyaz Yazı */
    border-left-width: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-weight: 500;
}
.toast i { color: #fff; } /* İkonlar da beyaz olsun */

/* Renk kodları (Sol çizgi için) */
.toast.success { border-left-color: #10b981; }
.toast.error   { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }
    /* 2. DİĞER CSS DÜZELTMELERİ */
    .dashboard-grid { display: grid; grid-template-columns: 350px 1fr; gap: 30px; margin-top: 40px; align-items: start; }
    .screenshot-wrapper { text-align: center; margin-bottom: 30px; perspective: 1000px; }
    .phone-mockup {
        display: inline-block; border: 12px solid #1e293b; border-radius: 30px; overflow: hidden;
        background: #000; box-shadow: 0 20px 50px rgba(0,0,0,0.3); width: 280px;
        transform: rotateY(-5deg) rotateX(5deg); transition: 0.5s;
    }
    .phone-mockup:hover { transform: rotateY(0) rotateX(0); }
    .site-preview-img { width: 100%; display: block; }
    
    @media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } .phone-mockup { width: 100%; max-width: 280px; } }
/* GOOGLE VITALS CARD */
.google-vitals-card { background: #fff; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 4px 6px rgba(0,0,0,0.02); overflow: hidden; }
.g-header { background: #f8fafc; padding: 15px 25px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.g-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: #334155; }
.g-badge { background: #dcfce7; color: #166534; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 50px; }
.g-metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.g-metric { padding: 20px; border-right: 1px solid #f1f5f9; text-align: center; }
.g-metric:last-child { border-right: none; }
.gm-head { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 5px; }
.gm-title { font-size: 0.8rem; font-weight: 700; color: #64748b; text-transform: uppercase; }
.gm-status { width: 8px; height: 8px; border-radius: 50%; background: #ccc; }
.gm-val { font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 5px; }
.gm-desc { font-size: 0.8rem; color: #94a3b8; }

/* AI HUB (TABS) */
.ai-hub-section { background: #fff; border-radius: 16px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.04); }
.ai-tabs { display: flex; background: #f8fafc; border-bottom: 1px solid var(--border); overflow-x: auto; }
.ai-tab { flex: 1; padding: 15px; border: none; background: none; font-size: 0.9rem; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; display: flex; gap: 8px; align-items: center; justify-content: center; transition:0.2s; }
.ai-tab:hover { background: #f1f5f9; color: var(--primary); }
.ai-tab.active { background: #fff; color: var(--primary); border-bottom-color: var(--primary); }
.ai-content-area { padding: 25px; min-height: 150px; }
.tab-pane { display: none; animation: fadeIn 0.3s ease; }
.tab-pane.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.ai-insight-box { display: flex; gap: 20px; align-items: flex-start; }
.aib-icon { width: 50px; height: 50px; background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.aib-text { font-size: 0.95rem; line-height: 1.6; color: #334155; }
.ai-text-content { font-size: 0.95rem; line-height: 1.6; color: #475569; }
.ai-text-content ul { padding-left: 20px; } .ai-text-content li { margin-bottom: 8px; }

/* KEYWORDS */
.kw-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-tag { padding: 6px 14px; border-radius: 50px; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.85rem; }
.kw-c-primary { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.kw-c-gray { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.kw-count { background: rgba(0,0,0,0.05); padding: 2px 6px; border-radius: 8px; font-size: 0.75em; }

/* RESULTS LIST */
.result-group { margin-bottom: 25px; }
.group-title { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.r-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.r-item-left { display: flex; gap: 15px; align-items: flex-start; flex: 1; }
.status-icon { font-size: 1.2rem; margin-top: 2px; }
.success .status-icon { color: #10b981; } .warning .status-icon { color: #facc15; } .error .status-icon { color: #ef4444; }
.ri-content h4 { margin: 0 0 4px; font-size: 0.95rem; color: var(--text-dark); }
.ri-content p { margin: 0; font-size: 0.85rem; color: var(--text-gray); }
.btn-mini-fix { background: #fff1f2; color: #e11d48; padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; text-decoration: none; border: 1px solid #fecdd3; transition: 0.2s; white-space: nowrap; }
.btn-mini-fix:hover { background: #e11d48; color: #fff; }

    /* Makale Alanı Özel Stilleri */
    .article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .kb-card { padding: 30px; border-radius: 16px; background: #fff; border: 1px solid #f1f5f9; transition: 0.3s; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); }
    .kb-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); border-color: #e2e8f0; }
    
    .kb-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
    .kb-card h3 { font-size: 1.25rem; color: #0f172a; margin: 0; font-weight: 700; }
    .kb-card p { color: #64748b; line-height: 1.6; margin-bottom: 15px; }
    
    .kb-card ul { padding-left: 20px; color: #475569; }
    .kb-card ul li { margin-bottom: 8px; font-size: 0.95rem; }
    .kb-card ul li strong { color: #334155; }

    /* İkon Renkleri */
    .kb-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
    .icon-seo { background: #eff6ff; color: #2563eb; }
    .icon-speed { background: #fff7ed; color: #ea580c; }
    .icon-sec { background: #f0fdf4; color: #16a34a; }
    .icon-ai { background: #faf5ff; color: #9333ea; }

    @media (max-width: 768px) {
        .article-grid { grid-template-columns: 1fr; }
    }
	
/* --- ANALİZ SAYFASI FAQ STİLLERİ --- */
.analysis-faq-section {
    background-color: #ffffff; /* Bembeyaz Zemin */
    padding: 100px 0;
    border-top: 1px solid #e2e8f0;
    position: relative;
    z-index: 10; /* Üstte kalsın */
}

/* Başlık Alanı */
.faq-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.faq-badge {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}

.faq-header-center h2 {
    color: #0f172a; /* Koyu Lacivert (Neredeyse Siyah) */
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.text-highlight {
    color: #2563eb; /* Marka Mavisi */
    position: relative;
    display: inline-block;
}

.faq-header-center p {
    color: #64748b; /* Orta Gri */
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Grid Yapısı */
.faq-grid-white {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Kart Tasarımı (Clean Look) */
.faq-card-clean {
    background: #f8fafc; /* Slate-50 (Çok açık gri) */
    padding: 35px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.faq-card-clean:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1); /* Yumuşak Gölge */
    border-color: #2563eb;
}

/* İkonlar */
.fc-icon {
    width: 50px;
    height: 50px;
    background: #ffffff;
    color: #2563eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.faq-card-clean:hover .fc-icon {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* Kart Metinleri */
.faq-card-clean h3 {
    color: #0f172a; /* Koyu Başlık */
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.faq-card-clean p {
    color: #475569; /* Okunaklı Gri */
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobil Uyum */
@media (max-width: 992px) {
    .faq-grid-white { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .faq-grid-white { grid-template-columns: 1fr; }
    .faq-header-center h2 { font-size: 2rem; }
    .analysis-faq-section { padding: 60px 0; }
}

/* Basit Ticker CSS */
.live-analysis-ticker { background: #0f172a; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 10px 0; overflow: hidden; white-space: nowrap; }
.ticker-wrapper { display: flex; align-items: center; max-width: 1200px; margin: 0 auto; }
.ticker-label { color: #38bdf8; font-weight: 700; margin-right: 20px; padding-left: 20px; font-size: 0.9rem; }
.ticker-content { display: flex; gap: 30px; animation: tickerMove 20s linear infinite; }
.ticker-item { color: #94a3b8; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.t-score { padding: 2px 6px; border-radius: 4px; font-weight: 700; font-size: 0.8rem; color:#000; }
.t-score.good { background: #34d399; } .t-score.avg { background: #fbbf24; } .t-score.bad { background: #f87171; }
@keyframes tickerMove { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* =========================================================
   MOBİL İÇİN TAB MENÜYÜ İPTAL ETME (UN-TAB) & BAŞLIK EKLEME
   ========================================================= */
@media (max-width: 900px) {

    /* 1. Üstteki Sekme Butonlarını Gizle */
    .ai-tabs {
        display: none;
    }

    /* 2. Tüm İçerik Panellerini Görünür Yap ve Alt Alta Diz */
    .tab-pane {
        display: block; /* Hepsini aç */
        opacity: 1 ;     /* Görünür yap */
        margin-bottom: 30px;       /* Aralarına boşluk koy */
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 20px;
        position: relative;        /* Başlık eklemek için referans */
        padding-top: 50px;         /* Başlık için üstten yer aç */
    }

    /* 3. CSS ile Otomatik Başlık Ekleme (Pseudo-Element) */
    /* Her kutunun ID'sine göre başlığını biz yazıyoruz */
    
    .tab-pane::before {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: #f8fafc; /* Başlık zemin rengi */
        padding: 10px 20px;
        font-weight: 700;
        color: #334155;
        border-bottom: 1px solid #e2e8f0;
        border-radius: 12px 12px 0 0;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* 4. Her ID için Özel İsim ve İkon Ataması */
    #tab-ozet::before {
        content: "\f544  AI Özeti"; /* FontAwesome kodu + Metin */
        font-family: "Font Awesome 6 Free"; /* İkon fontu */
        color: #8b5cf6;
    }

    #tab-icerik::before {
        content: "\f0eb  İçerik Fırsatları";
        font-family: "Font Awesome 6 Free";
        color: #f59e0b;
    }

    #tab-ux::before {
        content: "\f4fc  UX & Tasarım";
        font-family: "Font Awesome 6 Free";
        color: #10b981;
    }

    #tab-cro::before {
        content: "\f140  Satış (CRO)";
        font-family: "Font Awesome 6 Free";
        color: #ef4444;
    }
}
/* Ekran Görüntüsü Mockup Stili */
.screenshot-wrapper {
    text-align: center;
    perspective: 1000px;
}

.phone-mockup {
    display: inline-block;
    border: 12px solid #1e293b; /* Çerçeve rengi */
    border-radius: 30px; /* Köşe yuvarlaklığı */
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 260px; /* Telefon genişliği */
    transform: rotateY(-5deg) rotateX(5deg); /* 3D Efekt */
    transition: 0.5s;
}

.phone-mockup:hover {
    transform: rotateY(0) rotateX(0); /* Üzerine gelince düzelsin */
}

.site-preview-img {
    width: 100%;
    display: block;
    height: auto;
}
/* TELEFON MOCKUP DÜZELTMESİ */
.phone-mockup {
    /* Genişliği sabitleme, responsive yap */
    width: 100%;
    max-width: 260px; 
    height: auto;
    aspect-ratio: 9 / 19; /* Telefon oranı */
    background: #000;
    border: 10px solid #1e293b;
    border-radius: 30px;
    overflow: hidden; /* Taşmayı kesin engelle */
    position: relative;
}

.site-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi çerçeveye doldur */
    object-position: top center; /* Daima sitenin en tepesini göster */
}

/* MOBİLDE BAŞLIK TAŞMALARINI ENGELLEME */
/* Kart başlıkları çok uzunsa ... koy */
.ri-content h4 {
    white-space: normal; /* Alt satıra inebilsin */
    word-break: break-word; /* Kelimeyi böl */
    font-size: 0.9rem;
    line-height: 1.3;
}

/* Core Web Vitals Kutuları Mobilde Sığsın */
@media (max-width: 480px) {
    .g-metrics-grid {
        grid-template-columns: 1fr; /* Mobilde alt alta */
    }
    .g-metric {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 15px;
    }
}
/* =========================================
   MOBİL TAŞMA VE SIKIŞMA DÜZELTMELERİ (FINAL FIX)
   ========================================= */


.analiz-page-wrapper {
    overflow-x: hidden;
    width: 100%;
}

/* 2. Sonuç Kartları (.r-item) Mobil Düzeni */
@media (max-width: 600px) {
    /* Kartın kendisi */
    .r-item {
        display: flex;
        flex-direction: column; /* Yan yana değil, alt alta diz */
        align-items: flex-start; /* Sola yasla */
        gap: 12px;
        width: 100%; /* Ekrana tam otursun */
        padding: 15px; /* İç boşluğu biraz azalt */
    }

    /* Sol taraf (İkon + Metin) */
    .r-item-left {
        width: 100%;
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    /* İkonun büzüşmesini engelle */
    .status-icon {
        flex-shrink: 0;
        margin-top: 3px;
    }

    /* İçerik alanı (Başlık ve Açıklama) */
    .ri-content {
        flex: 1; /* Kalan alanı kapla */
        min-width: 0; /* Flexbox taşma fix'i (Çok Önemli) */
        width: 100%;
    }

    /* Başlıkların taşmasını engelle */
    .ri-content h4 {
        font-size: 0.95rem;
        line-height: 1.4;
        white-space: normal; /* Alt satıra inmeye zorla */
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word; /* Uzun kelimeleri kır */
    }

    /* Açıklama metinleri */
    .ri-content p {
        font-size: 0.85rem;
        white-space: normal;
        word-wrap: break-word;
    }

    /* Teknik Veri / URL Alanı (.res-data) */
    .res-data {
        display: block; /* Blok yap ki alt satıra geçsin */
        width: 100%;
        white-space: normal; /* Satır sonuna gelince dön */
        word-break: break-all; /* Linkleri her yerden kırabilirsin */
        font-size: 0.75rem;
        margin-top: 8px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    /* "Düzelt" butonu veya sağdaki etiketler */
    .btn-mini-fix {
        margin-left: 0; /* Mobilde sola yasla */
        margin-top: 5px;
        display: inline-block;
        width: 100%; /* Mobilde butonu tam genişlik yap (Opsiyonel) */
        text-align: center;
    }
}

/* 3. Kod Blokları ve Pre Etiketleri (Hız Reçetesi vb.) */
pre, code, #serverCodeRaw {
    white-space: pre-wrap; /* Kodları ekrana sığdır */
    word-break: break-all; /* Uzun kodları kır */
    max-width: 100%;
    overflow-x: hidden; /* Scroll yerine kırmayı tercih et */
}

/* 4. AI Sohbet Kutusu Taşma Fix */
.ai-insight-box {
    flex-direction: column; /* İkon ve metni alt alta al */
    align-items: flex-start;
}
.aib-icon {
    margin-bottom: 10px;
}
.aib-text {
    width: 100%;
    word-wrap: break-word;
}

/* =========================================
   7. MOBİL UYUMLULUK (RESPONSIVE FIXES)
   ========================================= */

/* --- ANALİZ ET BUTONU SAĞA KAYMA DÜZELTMESİ --- */
@media (max-width: 480px) {
    /* 1. Arama kutusunun paddingini düşür */
    .search-box {
        padding: 4px;
        flex-wrap: nowrap; /* Asla alt satıra geçmesin (yan yana kalsın) */
    }

    /* 2. İkonu biraz sıkıştır */
    .search-icon {
        padding-left: 12px;
        font-size: 1rem;
    }

    /* 3. Input alanının fontunu ve boşluğunu ayarla */
    .search-box input {
        padding: 12px 10px;
        font-size: 0.95rem;
        width: 100%; /* Flex içinde alan kaplasın */
        min-width: 0; /* Taşmayı engeller */
    }

    /* 4. Butonu küçült ve sığdır */
    .btn-analyze {
        padding: 10px 18px; /* Padding'i azalttık (Önemli) */
        font-size: 0.9rem;
        gap: 5px;
    }

    /* 5. Gerekirse ikon metnini gizleyebiliriz ama şu an padding ayarı yeterli olacaktır */
    
    /* Vitals Mobilde Alt Alta */
    .g-metrics-grid { grid-template-columns: 1fr; }
    .g-metric { border-right: none; border-bottom: 1px solid #f1f5f9; padding: 15px; }
}

@media (max-width: 900px) {
    /* Dashboard Tek Kolon */
    .dashboard-wrapper { grid-template-columns: 1fr; }
    .score-card { position: static; margin-bottom: 30px; order: -1; }
    .hero-section-seo h1 { font-size: 2rem; }
    
    /* Tab Menü Mobilde Açık Liste (Un-tab) */
    .ai-tabs { display: none ; }
    .tab-pane { 
        display: block !important; opacity: 1 !important; margin-bottom: 30px; 
        background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; 
        padding: 20px; position: relative; padding-top: 50px; 
    }
    .tab-pane::before { 
        position: absolute; top: 0; left: 0; width: 100%; background: #f8fafc; 
        padding: 10px 20px; font-weight: 700; color: #334155; 
        border-bottom: 1px solid #e2e8f0; border-radius: 12px 12px 0 0; 
        font-size: 0.95rem; display: flex; align-items: center; gap: 8px; font-family: "Font Awesome 6 Free";
    }
    /* Pseudo Başlıklar */
    #tab-ozet::before { content: "\f544  AI Özeti"; color: #8b5cf6; }
    #tab-icerik::before { content: "\f0eb  İçerik Fırsatları"; color: #f59e0b; }
    #tab-ux::before { content: "\f4fc  UX & Tasarım"; color: #10b981; }
    #tab-cro::before { content: "\f140  Satış (CRO)"; color: #ef4444; }
    
    .faq-grid-white { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    
    /* Sonuç Kartları Mobilde Alt Alta */
    .r-item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 15px; }
    .r-item-left { width: 100%; }
    .ri-content { flex: 1; min-width: 0; width: 100%; }
    .btn-mini-fix { margin-left: 0; margin-top: 5px; width: 100%; text-align: center; }
    
    /* AI Box Mobil */
    .ai-insight-box { flex-direction: column; }
    .aib-icon { margin-bottom: 10px; }
}

/* Ekran görüntüsü yüklenirken boşluk kalmaması için */
.site-preview-img {
    min-height: 400px;
    background: #f1f5f9 url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48Y2lyY2xlIGN4PSIyMCIgY3k9IjIwIiByPSIxOCIgc3Ryb2tlPSIjZDJkNmRjIiBzdHJva2Utd2lkdGg9IjIiIGZpbGw9Im5vbmUiLz48L3N2Zz4=') no-repeat center;
    background-size: 40px;
}

/* Yasaklı site uyarısı gelirse diye hata toast stilini belirginleştir */
.toast.error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}
/* --- v4.4 ekleri: keyword cloud + AI list görünümü --- */
.kw-cloud{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.kw-cloud .kw-pill{display:inline-flex;align-items:center;padding:6px 10px;border:1px solid var(--border-color);border-radius:999px;background:#fff;color:var(--text-dark);font-size:.85rem;line-height:1;}
.kw-cloud li{list-style:none;display:inline-block;margin:0;padding:0;}

.ai-text-content ul{margin:0;padding-left:18px;}
.ai-text-content li{margin:6px 0;}

/* tarama yapılıyor */
.taramabasladi {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}