/* Airbnb-Inspired Soft UI Dashboard */

:root {
    /* Colors - Airbnb inspired soft palette */
    --bg-primary: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --text-primary: #222222;
    --text-secondary: #717171;
    --text-tertiary: #B0B0B0;
    --accent-coral: #FF5A5F;
    --accent-teal: #00A699;
    --accent-blue: #428BFF;
    --accent-green: #008A05;
    --accent-yellow: #FFB400;
    --border-light: #EBEBEB;
    --shadow-soft: 0 2px 16px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 24px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 24px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(255, 90, 95, 0.1), rgba(0, 166, 153, 0.1));
    color: var(--accent-coral);
}

.nav-icon {
    font-size: 18px;
}

/* Filters */
.filters {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.filters h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.multi-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-primary);
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

.reset-btn {
    width: 100%;
    padding: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: var(--text-primary);
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px 32px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

.date-badge {
    background: var(--bg-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-soft);
}

/* KPI Cards */
.kpi-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.kpi-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.kpi-icon.blue {
    background: rgba(66, 139, 255, 0.1);
}

.kpi-icon.green {
    background: rgba(0, 138, 5, 0.1);
}

.kpi-icon.teal {
    background: rgba(0, 166, 153, 0.1);
}

.kpi-icon.coral {
    background: rgba(255, 90, 95, 0.1);
}

.kpi-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.kpi-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Dashboard Sections */
.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 600;
}

.tab-buttons {
    display: flex;
    gap: 8px;
}

.tab-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    border-color: var(--accent-coral);
}

.tab-btn.active {
    background: var(--accent-coral);
    border-color: var(--accent-coral);
    color: white;
}

/* Chart Grid */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.chart-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.chart-card.large {
    grid-column: span 1;
}

.chart-card.full-width {
    grid-column: span 2;
}

.chart-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.chart-container {
    height: 280px;
    position: relative;
}

.chart-container.tall {
    height: 400px;
}

/* Leaderboard */
.leaderboard {
    max-height: 300px;
    overflow-y: auto;
}

.leader-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.leader-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
}

.leader-rank.gold {
    background: #FFD700;
    color: #8B7500;
}

.leader-rank.silver {
    background: #C0C0C0;
    color: #555;
}

.leader-rank.bronze {
    background: #CD7F32;
    color: #4A3A20;
}

.leader-rank.other {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.leader-name {
    flex: 1;
    font-weight: 500;
}

.leader-score {
    font-weight: 600;
    color: var(--accent-teal);
}

/* SWOT Grid */
.swot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.swot-box {
    padding: 20px;
    border-radius: var(--radius-md);
}

.swot-box h4 {
    font-size: 14px;
    margin-bottom: 12px;
}

.swot-box ul {
    list-style: none;
    font-size: 13px;
    line-height: 1.8;
}

.swot-box.strength {
    background: rgba(0, 138, 5, 0.08);
}

.swot-box.weakness {
    background: rgba(255, 90, 95, 0.08);
}

.swot-box.opportunity {
    background: rgba(66, 139, 255, 0.08);
}

.swot-box.threat {
    background: rgba(255, 180, 0, 0.08);
}

/* Leaders List */
.leaders-list {
    font-size: 14px;
}

.leader-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

/* Three Column Grid for Features */
.chart-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

/* Benchmark Table */
.benchmark-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.benchmark-table-wrapper {
    overflow-x: auto;
    margin-bottom: 16px;
}

.benchmark-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.benchmark-table th,
.benchmark-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.benchmark-table th {
    background: var(--bg-primary);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.benchmark-table th:first-child,
.benchmark-table td:first-child {
    text-align: left;
    font-weight: 500;
    position: sticky;
    left: 0;
    background: var(--bg-secondary);
}

.benchmark-table td.strong {
    background: rgba(0, 138, 5, 0.15);
    color: #006203;
}

.benchmark-table td.neutral {
    background: rgba(255, 180, 0, 0.15);
    color: #8a6600;
}

.benchmark-table td.weak {
    background: rgba(255, 90, 95, 0.15);
    color: #b83035;
}

.benchmark-legend {
    display: flex;
    gap: 24px;
    justify-content: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.benchmark-tab {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
}

.benchmark-tab.active {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    color: white;
}

/* Sentiment Views */
.sentiment-view {
    display: none;
}

.sentiment-view.active {
    display: block;
}

.sentiment-tab {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.sentiment-tab:hover {
    border-color: var(--accent-coral);
}

.sentiment-tab.active {
    background: var(--accent-coral);
    border-color: var(--accent-coral);
    color: white;
}

/* Bank Selector */
.bank-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.bank-selector label {
    font-weight: 500;
    color: var(--text-secondary);
}

.bank-selector select {
    padding: 10px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    min-width: 200px;
    background: white;
}

/* Sources Grid Moved to Bottom for Priority */

/* Responsive */
@media (max-width: 1200px) {
    .kpi-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }

    .chart-card.large,
    .chart-card.full-width {
        grid-column: span 1;
    }

    .chart-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
    }

    .kpi-section {
        grid-template-columns: 1fr;
    }

    .chart-grid.three-col {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   AI ANALYSIS SECTION STYLES
   ======================================== */

.section-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* AI Summary Card */
.ai-summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.ai-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.ai-summary-header h3 {
    font-size: 18px;
    color: white;
    margin: 0;
}

.ai-score {
    font-size: 42px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 24px;
    border-radius: var(--radius-md);
}

.ai-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ai-summary-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 16px;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.ai-summary-item h4 {
    font-size: 14px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.ai-summary-item ul {
    list-style: none;
    font-size: 13px;
    line-height: 1.8;
}

.ai-summary-item ul li::before {
    content: "• ";
}

.ai-summary-item.comparison p {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.95;
}

/* AI Funnel Tabs */
.ai-funnel-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.ai-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 28px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.ai-tab:hover {
    border-color: var(--accent-coral);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.ai-tab.active {
    background: linear-gradient(135deg, var(--accent-coral), #FF8A8E);
    border-color: var(--accent-coral);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 90, 95, 0.3);
}

.tab-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.tab-text {
    font-size: 14px;
    font-weight: 600;
}

.tab-desc {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

/* AI Recommendations Grid */
.ai-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.ai-rec-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--accent-coral);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ai-rec-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.ai-rec-card.kritik {
    border-left-color: #FF3B30;
}

.ai-rec-card.yuksek {
    border-left-color: var(--accent-coral);
}

.ai-rec-card.orta {
    border-left-color: var(--accent-yellow);
}

.ai-rec-card.dusuk {
    border-left-color: var(--accent-teal);
}

.ai-rec-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.ai-rec-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.ai-rec-priority {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ai-rec-priority.kritik {
    background: #FFEBEE;
    color: #C62828;
}

.ai-rec-priority.yuksek {
    background: #FFF3E0;
    color: #E65100;
}

.ai-rec-priority.orta {
    background: #FFF8E1;
    color: #F57F17;
}

.ai-rec-priority.dusuk {
    background: #E0F2F1;
    color: #00695C;
}

.ai-rec-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.ai-rec-action {
    font-size: 13px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-teal);
}

.ai-rec-action strong {
    color: var(--accent-teal);
}

.ai-rec-impact {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-teal), #00C9B7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

/* Şikayetvar Highlight */
.ai-site-strategy h3 {
    color: #C62828;
}

.sikayetvar-highlight {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, #FFEBEE, #FCE4EC);
    border: 2px solid #EF9A9A;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 16px;
}

.sikayetvar-icon {
    font-size: 48px;
    flex-shrink: 0;
}

.sikayetvar-content {
    flex: 1;
}

.sikayetvar-why {
    font-size: 15px;
    font-weight: 500;
    color: #B71C1C;
    margin-bottom: 16px;
    line-height: 1.6;
}

.sikayetvar-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sikayetvar-action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 10px 14px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}

.sikayetvar-action-item::before {
    content: "✓";
    color: var(--accent-green);
    font-weight: 700;
}

/* Other Sites Grid */
.other-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.other-site-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.other-site-card:hover {
    background: white;
    box-shadow: var(--shadow-soft);
}

.other-site-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.other-site-icon.finans {
    background: #4CAF50;
}

.other-site-icon.teknoloji {
    background: #2196F3;
}

.other-site-icon.arastirma {
    background: #9C27B0;
}

.other-site-icon.banka {
    background: #795548;
}

.other-site-info h4 {
    font-size: 14px;
    margin: 0 0 4px 0;
}

.other-site-info p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.other-site-importance {
    margin-left: auto;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.other-site-importance.yuksek {
    background: #FFEBEE;
    color: #C62828;
}

.other-site-importance.orta {
    background: #FFF8E1;
    color: #F57F17;
}

/* Site Structure Grid */
.site-intro {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.site-structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.site-structure-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.site-structure-url {
    font-family: monospace;
    background: var(--accent-blue);
    color: white;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    height: fit-content;
}

.site-structure-content h4 {
    font-size: 14px;
    margin: 0 0 6px 0;
}

.site-structure-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* Schema Examples */
.schema-intro {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.schema-examples {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.schema-example {
    background: #1E1E1E;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.schema-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #2D2D2D;
    border-bottom: 1px solid #444;
}

.schema-type {
    color: #569CD6;
    font-weight: 600;
    font-size: 14px;
}

.schema-desc {
    color: #888;
    font-size: 12px;
}

.schema-code {
    padding: 16px;
    overflow-x: auto;
}

.schema-code pre {
    color: #D4D4D4;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
    white-space: pre-wrap;
}

/* Tech SEO Grid */
.tech-seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.tech-seo-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    align-items: flex-start;
}

.tech-seo-check {
    width: 24px;
    height: 24px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.tech-seo-content h4 {
    font-size: 14px;
    margin: 0 0 4px 0;
}

.tech-seo-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

/* Brand Transition */
.brand-transition {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border: 2px solid #90CAF9;
}

.brand-transition h3 {
    color: #1565C0;
}

.brand-transition-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 24px 0;
}

.brand-old,
.brand-new {
    text-align: center;
}

.brand-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    display: inline-block;
}

.brand-old .brand-name {
    background: #FFCDD2;
    color: #C62828;
    text-decoration: line-through;
}

.brand-new .brand-name {
    background: #C8E6C9;
    color: #2E7D32;
}

.brand-arrow {
    font-size: 36px;
    color: var(--accent-blue);
}

.brand-seo-effects,
.brand-action-plan {
    margin-top: 16px;
}

.brand-seo-effects h4,
.brand-action-plan h4 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #1565C0;
}

.brand-seo-effects ul,
.brand-action-plan ul {
    list-style: none;
    padding: 0;
}

.brand-seo-effects li,
.brand-action-plan li {
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(21, 101, 192, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-seo-effects li::before {
    content: "⚠️";
}

.brand-action-plan li::before {
    content: "✅";
}

/* 30 Day Timeline */
.timeline {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    overflow-x: auto;
}

.timeline-week {
    flex: 1;
    min-width: 220px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 20px;
    border-top: 4px solid var(--accent-coral);
    position: relative;
}

.timeline-week:nth-child(2) {
    border-top-color: var(--accent-teal);
}

.timeline-week:nth-child(3) {
    border-top-color: var(--accent-blue);
}

.timeline-week:nth-child(4) {
    border-top-color: var(--accent-green);
}

.timeline-week h4 {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-week h4::before {
    content: "📅";
}

.timeline-tasks {
    list-style: none;
}

.timeline-tasks li {
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.timeline-tasks li::before {
    content: "▸";
    color: var(--accent-coral);
    font-weight: 700;
}

.timeline-tasks li:last-child {
    border-bottom: none;
}

/* Responsive adjustments for AI section */
@media (max-width: 992px) {
    .ai-summary-grid {
        grid-template-columns: 1fr;
    }

    .ai-funnel-tabs {
        flex-wrap: wrap;
    }

    .ai-tab {
        min-width: calc(50% - 6px);
    }

    .brand-transition-content {
        flex-direction: column;
        gap: 20px;
    }

    .brand-arrow {
        transform: rotate(90deg);
    }

    .timeline {
        flex-direction: column;
    }

    .timeline-week {
        min-width: 100%;
    }
}

/* ========================================
   NEGATIVE ANALYSIS STYLES
   ======================================== */

.negative-analysis {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    border: 2px solid #EF9A9A;
}

.negative-analysis h3 {
    color: #C62828;
}

.negative-intro {
    color: #B71C1C;
    font-size: 14px;
    margin-bottom: 16px;
}

.negative-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.negative-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: white;
    border-radius: var(--radius-sm);
    border-left: 3px solid #E53935;
    box-shadow: var(--shadow-soft);
}

.negative-item-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.negative-item-content h4 {
    font-size: 13px;
    margin: 0 0 4px 0;
    color: #C62828;
}

.negative-item-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.negative-summary {
    padding: 16px;
    background: #D32F2F;
    border-radius: var(--radius-sm);
    color: white;
}

.negative-summary strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.negative-summary p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

/* ========================================
   ALL RECOMMENDATIONS - SINGLE PAGE LIST
   ======================================== */

.recommendations-intro {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.all-recommendations {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rec-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.rec-item:hover {
    background: white;
    box-shadow: var(--shadow-soft);
}

.rec-item.priority-kritik {
    border-left: 4px solid #D32F2F;
}

.rec-item.priority-yuksek {
    border-left: 4px solid #FF5722;
}

.rec-item.priority-orta {
    border-left: 4px solid #FFC107;
}

.rec-item.priority-dusuk {
    border-left: 4px solid #4CAF50;
}

.rec-item.priority-stratejik {
    border-left: 4px solid #9C27B0;
}

.rec-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-coral), #FF8A8E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.rec-content {
    flex: 1;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.rec-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.rec-badges {
    display: flex;
    gap: 8px;
}

.rec-priority {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.rec-priority.kritik {
    background: #FFEBEE;
    color: #C62828;
}

.rec-priority.yuksek {
    background: #FFF3E0;
    color: #E65100;
}

.rec-priority.orta {
    background: #FFF8E1;
    color: #F57F17;
}

.rec-priority.dusuk {
    background: #E8F5E9;
    color: #2E7D32;
}

.rec-priority.stratejik {
    background: #F3E5F5;
    color: #7B1FA2;
}

.rec-category {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.rec-desc {
    margin: 12px 0;
    line-height: 1.6;
    color: #444;
}

.rec-actions-list {
    margin: 8px 0 0 20px;
    padding: 0;
    list-style-type: disc;
}

.rec-actions-list li {
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.rec-status-detail {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 0.9rem;
    border-left: 3px solid #ddd;
}

.rec-status-text {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin: 8px 0;
}

.rec-action {
    font-size: 12px;
    padding: 10px 14px;
    background: rgba(0, 166, 153, 0.08);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-teal);
}

.rec-action strong {
    color: var(--accent-teal);
}

.rec-impact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    text-align: center;
    gap: 4px;
}

.impact-label {
    font-size: 10px;
    color: var(--text-tertiary, #999);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
}

.impact-score {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent-teal, #00A699), #00C9B7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Filter buttons for categories */
.rec-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.rec-filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.rec-filter-btn:hover {
    border-color: var(--accent-coral);
}

.rec-filter-btn.active {
    background: var(--accent-coral);
    border-color: var(--accent-coral);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .rec-item {
        flex-direction: column;
    }

    .rec-impact {
        width: 100%;
        justify-content: flex-start;
    }
}

/* AI Strategic & Silent Killer Styles */
.card-subtitle {
    font-size: 13px;
    color: #888;
    margin-top: -10px;
    margin-bottom: 20px;
}

.silent-killers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.silent-killer-card {
    background: #fdfdfd;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px dashed #ddd;
    position: relative;
    transition: transform 0.2s;
}

.silent-killer-card:hover {
    transform: translateY(-2px);
    border-color: #f44336;
}

.silent-killer-card.impact-high {
    border-left: 4px solid #f44336;
}

.sk-title {
    font-weight: 700;
    font-size: 14px;
    color: #C62828;
    margin-bottom: 6px;
}

.sk-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.sk-impact {
    font-size: 9px;
    font-weight: 800;
    margin-top: 10px;
    color: #999;
}

/* Title Strategy Comparison */
.title-strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px 0;
}

.strategy-box {
    padding: 20px;
    border-radius: var(--radius-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.strategy-box.bad {
    background: #fff5f5;
    border: 1px solid #ffccbc;
}

.strategy-box.good {
    background: #f1f8e9;
    border: 1px solid #c5e1a5;
    font-weight: 600;
}

.example-title {
    font-size: 15px;
    margin-top: 10px;
}

.strategy-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
}

.kpi-card.min {
    padding: 12px 16px;
}

.kpi-card.min .kpi-value {
    font-size: 1.2rem;
}

/* AI Technical Analysis Section Styles */
.ai-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.tech-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.tech-card.full-width {
    grid-column: 1 / -1;
}

.tech-card h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

/* Schema Comparison */
.schema-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comparison-box {
    background: #f8f9fa;
    padding: 16px;
    border-radius: var(--radius-md);
    position: relative;
    border: 1px solid #eee;
}

.comparison-box.wrong {
    border-top: 4px solid #f44336;
}

.comparison-box.right {
    border-top: 4px solid #4caf50;
    background: #f0fdf4;
}

.bad-tag,
.good-tag {
    position: absolute;
    top: -12px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bad-tag {
    background: #f44336;
}

.good-tag {
    background: #4caf50;
}

.comparison-box pre {
    margin-top: 15px;
    font-size: 12px;
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
}

/* Legacy List */
.legacy-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.legacy-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.legacy-item:hover {
    background: #fcfcfc;
}

.legacy-url {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.legacy-url a {
    font-weight: 600;
    font-size: 14px;
    color: var(--blue-link, #2563eb);
    text-decoration: none;
}

.issue-count {
    font-size: 10px;
    background: #fee2e2;
    color: #b91c1c;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.legacy-details {
    font-size: 11px;
    color: #666;
}

/* Gaps List */
.gaps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gap-item {
    padding: 16px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid #eee;
    position: relative;
    border-left: 4px solid #ddd;
}

.gap-item.priority-critical {
    border-left-color: #7f1d1d;
    background: #fff1f2;
}

.gap-item.priority-high {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.gap-item.priority-medium {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

/* Horizontal (YATAY) Strategic Gaps */
#strategicGapsList {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    gap: 20px;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

#strategicGapsList .gap-item {
    flex: 0 0 380px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

#strategicGapsList .gap-desc {
    white-space: pre-wrap;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}

#strategicGapsList::-webkit-scrollbar {
    height: 8px;
}

#strategicGapsList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#strategicGapsList::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#strategicGapsList::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.gap-item.priority-low {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.gap-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.gap-desc {
    font-size: 12px;
    color: #666;
}

.gap-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9px;
    font-weight: 700;
}

.ai-kpi-subgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .schema-comparison {
        grid-template-columns: 1fr;
    }

}

/* Login Screen Styles */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.login-logo {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.login-header p {
    color: #94a3b8;
    font-size: 14px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.1);
}

.login-error {
    color: #f87171;
    font-size: 13px;
    margin-bottom: 15px;
    display: none;
}

.login-btn {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.login-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.login-footer {
    margin-top: 30px;
    color: #64748b;
    font-size: 12px;
}

/* Sources Grid & Cards */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    padding: 10px 0;
}

.source-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    justify-content: center;
}

.source-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.source-card .count {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-teal);
    line-height: 1;
    margin-bottom: 4px;
}

.source-card span:last-child {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.4;
}

.source-card.negative {
    border-left: 4px solid var(--accent-coral);
    background: rgba(255, 90, 95, 0.05);
}

.source-card.positive {
    border-left: 4px solid var(--accent-teal);
    background: rgba(0, 138, 5, 0.05);
}

.source-card.mixed {
    border-left: 4px solid var(--accent-yellow);
    background: rgba(255, 180, 0, 0.05);
}

.source-card.negative .count {
    color: var(--accent-coral);
}

#dashboardContainer {
    display: flex;
    width: 100%;
    min-height: 100vh;
}