﻿/* ============================================
   SITE-ANALIZ.HTML - SAYFA ÖZEL STİLLER
   Google Lighthouse + AI Analizi Sayfası
   ============================================ */

/* 1. PAGE BODY CLASS */
.page-site-analiz {
    /* Sayfa özel stiller varsa buraya */
}

/* 2. MAIN LAYOUT */
.main-content-no-padding {
    padding-top: 0 !important;
}

/* 3. EDITOR CARD - Site Analiz URL Input */
.site-analytics-editor-card {
    max-width: 100%;
    margin: 0 auto 50px auto;
    padding: 30px;
    min-height: auto;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.site-analytics-url-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
    padding: 0;
}

.url-input-wide {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-main);
    transition: all 0.2s;
}

.url-input-wide:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(38, 188, 194, 0.1);
}

.url-input-wide::placeholder {
    color: #94a3b8;
}

/* 4. LOADING OVERLAY */
.site-analytics-loading {
    display: none;
    text-align: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed var(--border);
}

.loading-spin-large {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.loading-text {
    color: var(--text-muted);
    font-size: 1rem;
}

/* 5. RESULTS AREA */
.site-analytics-results {
    display: none;
    max-width: 100%;
    margin: 0 auto;
}

/* 6. REPORT SUMMARY */
.report-summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

/* 7. REPORT HEADER GRID - Gauge Cards */
.report-header-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 28px;
    margin-bottom: 48px;
    padding: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.report-header-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--success), var(--warning));
    opacity: 0.7;
}

.report-header-grid:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-2px);
}

.gauge-card {
    text-align: center;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gauge-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #a6e6e9;
}

.gauge-card h3,
.gauge-card h2 {
    margin-top: 15px;
    font-size: 1rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 8px;
}

.circular-progress {
    position: relative;
    height: 120px;
    width: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0deg, #e0e0e0 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: background 0.5s ease;
}

.circular-progress::before {
    content: "";
    position: absolute;
    height: 100px;
    width: 100px;
    border-radius: 50%;
    background-color: var(--surface);
}

.progress-value {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    z-index: 2;
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 8. REPORT OVERVIEW */
.report-overview {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    margin-bottom: 40px;
    align-items: start;
}

.screenshot-box {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.screenshot-box img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

/* 9. METRICS GRID */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.metric-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.metric-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(166, 230, 233, 0.2);
    border-color: #a6e6e9;
    z-index: 1;
}

.metric-box.metric-good {
    border-left: 4px solid var(--success);
}

.metric-box.metric-avg {
    border-left: 4px solid var(--warning);
}

.metric-box.metric-poor {
    border-left: 4px solid var(--danger);
}

.metric-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.metric-header i {
    font-size: 0.9rem;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.metric-box.metric-good .metric-header i {
    background: var(--success-light);
    color: var(--success);
}

.metric-box.metric-avg .metric-header i {
    background: var(--warning-light);
    color: var(--warning);
}

.metric-box.metric-poor .metric-header i {
    background: var(--danger-light);
    color: var(--danger);
}

.metric-header span {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.85rem;
    line-height: 1.2;
}

.metric-val {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    text-align: center;
}

.metric-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 8px;
    min-height: 0;
}

.metric-tip {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-left: 3px solid var(--warning);
    padding: 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #92400e;
    margin-top: 6px;
}

.metric-tip i {
    color: var(--warning);
    margin-right: 4px;
    font-size: 0.7rem;
}

.metric-box.metric-good .metric-tip {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    border-left-color: var(--success);
    color: #065f46;
}

.metric-box.metric-good .metric-tip i {
    color: var(--success);
}

.metric-box.metric-poor .metric-tip {
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
    border-left-color: var(--danger);
    color: #991b1b;
}

.metric-box.metric-poor .metric-tip i {
    color: var(--danger);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
    line-height: 1;
}

.metric-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

/* 11. SUMMARY SECTION */
.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.summary-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.summary-header h3 i {
    color: var(--primary);
}

.summary-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.summary-item:hover {
    border-color: #a6e6e9;
    box-shadow: 0 6px 20px rgba(166, 230, 233, 0.15);
    transform: translateY(-3px);
    background: #e6f7f8;
}

.summary-item i {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
}

.summary-item div {
    flex: 1;
}

.summary-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.summary-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.summary-item span i {
    display: inline;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 2px;
}

.summary-item .url-text {
    word-break: break-all;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--primary);
}

.summary-version {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* 12. SUMMARY SECTION - DUPLICATE REMOVED */

/* 13. CATEGORY SECTION */
.category-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-section:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.category-header i {
    margin-right: 10px;
    color: var(--primary);
}

.category-score {
    font-size: 1.5rem;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: 12px;
    min-width: 60px;
    text-align: center;
}

.category-score.score-good {
    background: var(--success-light);
    color: var(--success);
}

.category-score.score-avg {
    background: var(--warning-light);
    color: var(--warning);
}

.category-score.score-poor {
    background: var(--danger-light);
    color: var(--danger);
}

.category-advice {
    background: linear-gradient(135deg, var(--primary-light) 0%, #eff6ff 100%);
    border-left: 4px solid var(--primary);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* 13. AUDIT DETAILS */
.audit-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.audit-section-title.fail-section {
    color: var(--danger);
    border-bottom-color: rgba(220, 38, 38, 0.2);
}

.audit-section-title.pass-section {
    color: var(--success);
    border-bottom-color: rgba(16, 185, 129, 0.2);
}

.audit-section-title i {
    font-size: 1.1rem;
}

.no-issues {
    background: var(--success-light);
    color: var(--success);
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.audit-detail {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.audit-detail:hover {
    border-color: #a6e6e9;
    box-shadow: 0 4px 12px rgba(166, 230, 233, 0.1);
}

.audit-detail[open] {
    border-color: var(--primary);
}

.audit-detail summary {
    display: flex;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    list-style: none;
    gap: 12px;
    font-weight: 500;
    transition: background 0.2s;
}

.audit-detail summary:hover {
    background: var(--bg-body);
}

.audit-detail summary::-webkit-details-marker {
    display: none;
}

.audit-detail summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    transition: transform 0.3s;
    color: var(--text-muted);
}

.audit-detail[open] summary::after {
    transform: rotate(180deg);
    color: var(--primary);
}

.audit-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.audit-icon.pass {
    background: var(--success-light);
    color: var(--success);
}

.audit-icon.avg {
    background: var(--warning-light);
    color: var(--warning);
}

.audit-icon.fail {
    background: var(--danger-light);
    color: var(--danger);
}

.audit-title {
    flex: 1;
    color: var(--text-main);
    font-weight: 500;
}

.audit-value {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 12px;
    background: var(--bg-body);
    border-radius: 6px;
    min-width: 80px;
    text-align: center;
}

.audit-content {
    padding: 0 16px 16px 68px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
    padding-top: 16px;
}

.audit-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.audit-tip {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-left: 4px solid var(--warning);
    padding: 12px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #92400e;
}

.audit-tip i {
    color: var(--warning);
    margin-right: 8px;
}

.audit-details-table {
    margin-top: 16px;
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.audit-details-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.audit-details-table th {
    background: var(--bg-body);
    color: var(--text-main);
    font-weight: 600;
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.audit-details-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    vertical-align: top;
}

.audit-details-table tr:last-child td {
    border-bottom: none;
}

.audit-details-table a {
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}

.audit-details-table a:hover {
    text-decoration: underline;
}

.more-items {
    text-align: center;
    padding: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    border-top: 1px dashed var(--border);
    margin-top: 8px;
}

/* 14. AI INSIGHTS SECTION */
.ai-insights-section {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.ai-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #a6e6e9;
}

.ai-card h3 {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.ai-card h3 i {
    font-size: 1.3rem;
}

.ai-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Overall Assessment */
.overall-assessment {
    background: linear-gradient(135deg, #e6f7f8 0%, #f0f9ff 100%);
    border-left: 4px solid var(--primary);
}

.overall-assessment h3 {
    color: var(--primary);
}

.overall-assessment h3 i {
    color: var(--primary);
}

/* Critical Issues */
.critical-issues {
    border-left: 4px solid var(--danger);
}

.critical-issues h3 {
    color: var(--danger);
}

.critical-issues h3 i {
    color: var(--danger);
}

.issue-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.issue-item:last-child {
    margin-bottom: 0;
}

.issue-item:hover {
    border-color: #a6e6e9;
    box-shadow: 0 4px 12px rgba(166, 230, 233, 0.1);
}

.issue-item.high {
    border-left: 4px solid var(--danger);
}

.issue-item.medium {
    border-left: 4px solid var(--warning);
}

.issue-item.low {
    border-left: 4px solid var(--success);
}

.issue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.issue-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    flex: 1;
}

.issue-priority {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.issue-priority.priority-high {
    background: var(--danger-light);
    color: var(--danger);
}

.issue-priority.priority-medium {
    background: var(--warning-light);
    color: var(--warning);
}

.issue-priority.priority-low {
    background: var(--success-light);
    color: var(--success);
}

.issue-explanation {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.issue-solution {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-left: 4px solid var(--warning);
    padding: 14px;
    border-radius: 8px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.issue-solution i {
    color: var(--warning);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.issue-solution strong {
    display: block;
    color: #92400e;
    font-weight: 600;
    margin-bottom: 6px;
}

.issue-solution p {
    margin: 0;
    color: #92400e;
    line-height: 1.6;
}

.issue-impact {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-left: 4px solid var(--primary);
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #1e40af;
    line-height: 1.5;
}

.issue-impact i {
    color: var(--primary);
    margin-right: 8px;
}

/* Quick Wins */
.quick-wins {
    border-left: 4px solid var(--success);
}

.quick-wins h3 {
    color: var(--success);
}

.quick-wins h3 i {
    color: var(--success);
}

.win-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 14px;
    transition: all 0.2s;
}

.win-item:last-child {
    margin-bottom: 0;
}

.win-item:hover {
    border-color: var(--success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

.win-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.win-icon {
    width: 32px;
    height: 32px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.win-title {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
    flex: 1;
}

.win-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.9rem;
    padding-left: 42px;
}

.win-action {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    border-left: 4px solid var(--success);
    padding: 12px;
    border-radius: 6px;
    margin-left: 42px;
    font-size: 0.85rem;
    color: #065f46;
    line-height: 1.5;
}

.win-action i {
    color: var(--success);
    margin-right: 8px;
}

.win-action strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Estimated Improvement */
.estimated-improvement {
    border-left: 4px solid var(--primary);
}

.estimated-improvement h3 {
    color: var(--primary);
}

.estimated-improvement h3 i {
    color: var(--primary);
}

.improvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.improvement-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    transition: all 0.2s;
}

.improvement-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(38, 188, 194, 0.15);
    transform: translateY(-2px);
}

.improvement-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.improvement-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.improvement-item span {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.improvement-note {
    background: linear-gradient(135deg, #e6f7f8 0%, #f0f9ff 100%);
    border-left: 4px solid var(--primary);
    padding: 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0c4a6e;
    line-height: 1.6;
}

.improvement-note i {
    color: var(--primary);
    margin-right: 8px;
}

/* Resource Summary Card */
.resource-summary {
    border-left: 4px solid #6366f1;
}

.resource-summary h3 {
    color: #6366f1;
}

.resource-summary h3 i {
    color: #6366f1;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 16px;
    margin-top: 16px;
}

.resource-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
}

.resource-item:hover {
    border-color: #a5b4fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.resource-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

.resource-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 4px;
}

.resource-count {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Opportunities Card */
.opportunities {
    border-left: 4px solid #f59e0b;
}

.opportunities h3 {
    color: #f59e0b;
}

.opportunities h3 i {
    color: #f59e0b;
}

.opportunities-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.opportunity-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s;
}

.opportunity-item:hover {
    border-color: #fbbf24;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.1);
}

.opportunity-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.opportunity-header i {
    color: #f59e0b;
    font-size: 1rem;
}

.opportunity-value {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 8px 0;
}

.opportunity-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 8px;
}

/* Third-Party Card */
.third-party {
    border-left: 4px solid #8b5cf6;
}

.third-party h3 {
    color: #8b5cf6;
}

.third-party h3 i {
    color: #8b5cf6;
}

.third-party-summary {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.third-party-summary strong {
    color: #8b5cf6;
    font-weight: 700;
}

/* Priority Matrix Card */
.priority-matrix {
    background: linear-gradient(135deg, #fef9c3 0%, #fef3c7 100%);
    border-left: 4px solid #d97706;
}

.priority-matrix h3 {
    color: #d97706;
}

.priority-matrix h3 i {
    color: #d97706;
}

.priority-matrix p {
    color: #92400e;
    font-weight: 500;
    line-height: 1.7;
}

/* Security Notes Card */
.security-notes {
    background: linear-gradient(135deg, #fee2e2 0%, #fef2f2 100%);
    border-left: 4px solid #ef4444;
}

.security-notes h3 {
    color: #ef4444;
}

.security-notes h3 i {
    color: #ef4444;
}

.security-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

.security-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #991b1b;
    line-height: 1.5;
}

.security-list li:last-child {
    margin-bottom: 0;
}

.security-list li i {
    color: #ef4444;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Code Example Block */
.code-example {
    margin-top: 16px;
    background: #1e293b;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #334155;
}

.code-header {
    background: #0f172a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #334155;
}

.code-header i {
    color: #60a5fa;
    font-size: 0.95rem;
}

.code-header span {
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
}

.code-example pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    background: #1e293b;
}

.code-example code {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Win Implementation */
.win-implementation {
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border-left: 3px solid #0ea5e9;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #0c4a6e;
}

.win-implementation strong {
    color: #0369a1;
    margin-right: 6px;
}

.win-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.win-time i {
    font-size: 0.85rem;
}

.win-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.win-difficulty {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.win-difficulty.difficulty-easy {
    background: var(--success-light);
    color: var(--success);
}

.win-difficulty.difficulty-medium {
    background: var(--warning-light);
    color: var(--warning);
}

.win-difficulty.difficulty-hard {
    background: var(--danger-light);
    color: var(--danger);
}

.win-impact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
}

.win-impact i {
    font-size: 1rem;
}

/* No AI Insights Fallback */
.no-ai {
    text-align: center;
    padding: 40px;
    background: var(--bg-body);
    border-radius: 12px;
    border: 1px dashed var(--border);
    color: var(--text-muted);
}

.no-ai i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-ai p {
    font-size: 1rem;
    margin: 0;
}

/* ============================================
   15. RESPONSIVE DESIGN
   ============================================ */

/* Tablet Breakpoint — Gauge kartları 2 sütun */
@media (min-width: 768px) and (max-width: 1024px) {
    .report-header-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-overview {
        grid-template-columns: 260px 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Editor Card */
    .site-analytics-editor-card {
        padding: 20px;
        margin-bottom: 30px;
    }

    .site-analytics-url-container {
        flex-direction: column;
    }

    .url-input-wide {
        min-width: 100%;
        font-size: 1rem;
        padding: 16px;
    }

    /* Gauge Cards */
    .report-header-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .circular-progress {
        height: 100px;
        width: 100px;
    }

    .circular-progress::before {
        height: 80px;
        width: 80px;
    }

    .progress-value {
        font-size: 2rem;
    }

    /* Report Overview */
    .report-overview {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .report-overview .screenshot-box {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Metrics Grid */
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Summary Grid */
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Category Section */
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        font-size: 1.1rem;
    }

    .category-score {
        font-size: 1.3rem;
        align-self: flex-start;
    }

    /* Audit Details */
    .audit-content {
        padding: 0 16px 16px 16px;
    }

    .audit-details-table {
        font-size: 0.8rem;
    }

    .audit-details-table th,
    .audit-details-table td {
        padding: 8px;
    }

    /* Issue Items */
    .issue-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .issue-priority {
        align-self: flex-start;
    }

    .issue-solution {
        flex-direction: column;
        gap: 8px;
    }

    /* Quick Wins */
    .win-desc,
    .win-action {
        padding-left: 0;
        margin-left: 0;
    }

    /* Improvement Grid */
    .improvement-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    /* Editor Card */
    .site-analytics-editor-card {
        padding: 16px;
        margin-bottom: 24px;
    }

    .url-input-wide {
        font-size: 0.95rem;
        padding: 14px;
    }

    /* Gauge Cards */
    .report-header-grid {
        padding: 16px;
        gap: 16px;
    }

    .circular-progress {
        height: 90px;
        width: 90px;
    }

    .circular-progress::before {
        height: 72px;
        width: 72px;
    }

    .progress-value {
        font-size: 1.8rem;
    }

    .gauge-card h3,
    .gauge-card h2 {
        font-size: 0.9rem;
    }

    /* Metric Boxes */
    .metric-box {
        padding: 16px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-val {
        font-size: 1.5rem;
    }

    .metric-desc {
        font-size: 0.85rem;
        min-height: auto;
    }

    /* Category Section */
    .category-section {
        padding: 16px;
    }

    .category-header {
        font-size: 1rem;
    }

    /* Audit Details */
    .audit-detail summary {
        padding: 12px;
        font-size: 0.9rem;
    }

    .audit-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .audit-value {
        font-size: 0.8rem;
        padding: 3px 8px;
        min-width: 60px;
    }

    /* AI Cards */
    .ai-card {
        padding: 16px;
    }

    .ai-card h3 {
        font-size: 1.05rem;
    }

    /* Issue Items */
    .issue-item {
        padding: 16px;
    }

    .issue-title {
        font-size: 0.95rem;
    }

    .issue-explanation {
        font-size: 0.85rem;
    }
}

/* ============================================
   16. DARK MODE SUPPORT (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .page-site-analiz {
        /* Dark mode değişkenleri gerekirse buraya */
    }

    .site-analytics-editor-card {
        background: rgba(30, 41, 59, 0.7);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .url-input-wide {
        background-color: rgba(15, 23, 42, 0.8);
        color: #f1f5f9;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .url-input-wide::placeholder {
        color: #64748b;
    }

    .site-analytics-loading {
        background: rgba(30, 41, 59, 0.5);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .gauge-card,
    .metric-box,
    .category-section,
    .audit-detail,
    .issue-item,
    .win-item,
    .improvement-item {
        background: rgba(30, 41, 59, 0.5);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .circular-progress::before {
        background-color: rgba(15, 23, 42, 0.8);
    }

    .audit-detail summary:hover,
    .summary-item:hover {
        background: rgba(15, 23, 42, 0.5);
    }

    /* Resource Summary - Dark Mode */
    .resource-summary {
        border-left-color: #a5b4fc;
    }

    .resource-summary h3,
    .resource-summary h3 i {
        color: #a5b4fc;
    }

    .resource-item {
        background: rgba(30, 41, 59, 0.5);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .resource-item:hover {
        border-color: #6366f1;
    }

    .resource-value {
        color: #a5b4fc;
    }

    /* Opportunities - Dark Mode */
    .opportunities {
        border-left-color: #fbbf24;
    }

    .opportunities h3,
    .opportunities h3 i {
        color: #fbbf24;
    }

    .opportunity-item {
        background: rgba(30, 41, 59, 0.5);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .opportunity-item:hover {
        border-color: #f59e0b;
    }

    .opportunity-value {
        background: rgba(245, 158, 11, 0.2);
        color: #fde68a;
    }

    /* Third-Party - Dark Mode */
    .third-party {
        border-left-color: #c084fc;
    }

    .third-party h3,
    .third-party h3 i {
        color: #c084fc;
    }

    .third-party-summary strong {
        color: #c084fc;
    }

    /* Priority Matrix - Dark Mode */
    .priority-matrix {
        background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(30, 41, 59, 0.8) 100%);
        border-left-color: #f59e0b;
    }

    .priority-matrix h3,
    .priority-matrix h3 i {
        color: #fbbf24;
    }

    .priority-matrix p {
        color: #fde68a;
    }

    /* Security Notes - Dark Mode */
    .security-notes {
        background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(30, 41, 59, 0.8) 100%);
        border-left-color: #ef4444;
    }

    .security-notes h3,
    .security-notes h3 i {
        color: #fca5a5;
    }

    .security-list li {
        background: rgba(30, 41, 59, 0.5);
        border-color: rgba(239, 68, 68, 0.3);
        color: #fca5a5;
    }

    /* Code Example - Dark Mode */
    .code-example {
        background: #0f172a;
        border-color: #1e293b;
    }

    .code-header {
        background: #020617;
    }

    /* Win Implementation - Dark Mode */
    .win-implementation {
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(30, 41, 59, 0.8) 100%);
        border-left-color: #0ea5e9;
        color: #7dd3fc;
    }

    .win-implementation strong {
        color: #38bdf8;
    }

    .win-time {
        background: rgba(14, 165, 233, 0.2);
        color: #7dd3fc;
    }

    /* Win Difficulty - Dark Mode */
    .win-difficulty.difficulty-easy {
        background: rgba(16, 185, 129, 0.2);
        color: #6ee7b7;
    }

    .win-difficulty.difficulty-medium {
        background: rgba(245, 158, 11, 0.2);
        color: #fcd34d;
    }

    .win-difficulty.difficulty-hard {
        background: rgba(239, 68, 68, 0.2);
        color: #fca5a5;
    }

    /* Issue Impact - Dark Mode */
    .issue-impact {
        background: rgba(59, 130, 246, 0.2);
        border-left-color: #3b82f6;
        color: #93c5fd;
    }

    .issue-impact i {
        color: #60a5fa;
    }

    /* Issue Priority - Dark Mode */
    .issue-priority.priority-high {
        background: rgba(239, 68, 68, 0.2);
        color: #fca5a5;
    }

    .issue-priority.priority-medium {
        background: rgba(245, 158, 11, 0.2);
        color: #fcd34d;
    }

    .issue-priority.priority-low {
        background: rgba(16, 185, 129, 0.2);
        color: #6ee7b7;
    }

    /* Issue Solution - Dark Mode */
    .issue-solution {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(30, 41, 59, 0.8) 100%);
        border-left-color: #f59e0b;
        color: #fde68a;
    }

    .issue-solution strong {
        color: #fde68a;
    }

    /* Overall Assessment - Dark Mode */
    .overall-assessment {
        background: linear-gradient(135deg, rgba(38, 188, 194, 0.1) 0%, rgba(30, 41, 59, 0.8) 100%);
        border-left-color: var(--primary);
    }

    .overall-assessment h3,
    .overall-assessment h3 i {
        color: #60a5fa;
    }

    /* Estimated Improvement - Dark Mode */
    .estimated-improvement {
        border-left-color: #60a5fa;
    }

    .estimated-improvement h3,
    .estimated-improvement h3 i {
        color: #60a5fa;
    }

    .improvement-note {
        background: linear-gradient(135deg, rgba(38, 188, 194, 0.1) 0%, rgba(30, 41, 59, 0.8) 100%);
        border-left-color: var(--primary);
        color: #7dd3fc;
    }

    .improvement-note i {
        color: #60a5fa;
    }
}

/* ============================================
   17. CİHAZ TAB'LARI (Masaüstü/Mobil)
   ============================================ */

.device-tabs {
    display: flex;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 30px 0 24px;
    background: var(--bg-body);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.device-tab {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.device-tab:hover {
    background: var(--primary-pale);
    color: var(--primary-text);
}

.device-tab.active {
    background: var(--primary);
    color: white;
}

.device-tab i {
    font-size: 1rem;
}

/* Cihaz sonuç panelleri */
.device-results {
    display: none;
}

.device-results.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

/* Cihaz Tab'ları - Dark Mode */
@media (prefers-color-scheme: dark) {
    .device-tabs {
        background: var(--surface);
    }

    .device-tab:hover {
        background: rgba(38, 188, 194, 0.15);
    }

    .device-tab.active {
        background: var(--primary);
        color: white;
    }
}

/* Cihaz Tab'ları - Mobil Responsive */
@media (max-width: 768px) {
    .device-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
        min-height: 44px;
    }
}

/* Sonuç Alanı Fade-in Animasyonu */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-fade-in {
    animation: fadeInUp 0.5s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    .results-fade-in {
        animation: none;
    }
}

/* ============================================
   18. ANALİZ GEÇMİŞİ DROPDOWN
   ============================================ */

/* URL container'a relative pozisyon (dropdown için) */
.site-analytics-url-container {
    position: relative;
}

.history-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: var(--primary-pale);
}

.history-item-url {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

.history-item-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.history-scores {
    font-weight: 600;
    color: var(--primary-text);
}

/* Analiz Geçmişi Dropdown - Dark Mode */
@media (prefers-color-scheme: dark) {
    .history-dropdown {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .history-item:hover {
        background: rgba(38, 188, 194, 0.1);
    }
}

/* Analiz Geçmişi Dropdown - Mobil Responsive */
@media (max-width: 768px) {
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .history-item-url {
        max-width: 100%;
    }
}

/* ============================================
   19. SEO ANALİZ BÖLÜMÜ
   AI Derinlemesine SEO Raporu
   ============================================ */

/* SEO Analiz Ana Container */
.seo-analysis-section {
    margin-top: 40px;
}

.seo-section-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.seo-analysis-section > .seo-section-header > h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px 0;
}

.seo-section-header h2 i {
    color: var(--primary);
    font-size: 1.5rem;
}

.seo-section-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* AI Destekli Badge */
.seo-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    padding: 3px 10px;
    border-radius: 16px;
    vertical-align: middle;
    margin-left: 8px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.seo-ai-badge i {
    font-size: 0.65rem;
}

.seo-subsection-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 32px 0 18px 0;
}

.seo-subsection-title i {
    color: var(--primary);
}

/* SEO Genel Özet Kartı */
.seo-overview-card {
    background: linear-gradient(135deg, #e6f7f8 0%, #f0f9ff 100%);
    border: 1px solid var(--primary-medium);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
}

.seo-overview-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.seo-mini-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    max-width: 140px;
}

.seo-mini-score {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.seo-mini-score i { font-size: 0.6rem; }
.seo-mini-score.excellent { background: #d1fae5; color: #065f46; }
.seo-mini-score.good { background: #dbeafe; color: #1e40af; }
.seo-mini-score.warning { background: #fef3c7; color: #92400e; }
.seo-mini-score.critical { background: #fee2e2; color: #991b1b; }

.seo-score-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 5px solid;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.seo-score-circle .seo-score-value { font-size: 2rem; line-height: 1; }
.seo-score-circle .seo-score-label { font-size: 0.7rem; font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

.seo-score-circle.excellent { background: linear-gradient(135deg, #d1fae5, #ecfdf5); border-color: #10b981; color: #065f46; }
.seo-score-circle.good { background: linear-gradient(135deg, #dbeafe, #eff6ff); border-color: #3b82f6; color: #1e40af; }
.seo-score-circle.warning { background: linear-gradient(135deg, #fef3c7, #fef9c3); border-color: #f59e0b; color: #92400e; }
.seo-score-circle.critical { background: linear-gradient(135deg, #fee2e2, #fef2f2); border-color: #ef4444; color: #991b1b; }

.seo-overview-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-main); margin: 0 0 10px 0; }
.seo-overview-content p { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; margin: 0; }

/* Teknik SEO Analizi */
.tech-seo-section { margin-bottom: 8px; }

.tech-seo-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.tech-seo-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 10px; margin: 0; }
.tech-seo-header h3 i { color: var(--primary); }

.tech-seo-badges { display: flex; align-items: center; gap: 8px; }
.tech-seo-score { font-size: 1rem; font-weight: 800; padding: 4px 14px; border-radius: 16px; min-width: 44px; text-align: center; }
.tech-seo-score.excellent { background: #d1fae5; color: #065f46; }
.tech-seo-score.good { background: #dbeafe; color: #1e40af; }
.tech-seo-score.warning { background: #fef3c7; color: #92400e; }
.tech-seo-score.critical { background: #fee2e2; color: #991b1b; }

.seo-audit-count.warn { background: #fef3c7; color: #92400e; }

.tech-seo-summary { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin: 0 0 18px 0; }

.tech-seo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 16px; }

.tech-seo-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: all 0.2s; }
.tech-seo-group:hover { border-color: #a6e6e9; box-shadow: 0 2px 12px rgba(166, 230, 233, 0.12); }
.tech-seo-group.all-pass { border-color: rgba(16, 185, 129, 0.3); }

.tech-seo-group-title { font-size: 0.88rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.tech-seo-group-title i { color: var(--primary); font-size: 0.85rem; }

.tech-seo-items { display: flex; flex-direction: column; gap: 6px; }

.tech-seo-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; transition: background 0.15s; }
.tech-seo-item:hover { background: var(--bg-body); }

.tech-seo-icon { font-size: 0.85rem; flex-shrink: 0; margin-top: 2px; }
.tech-seo-item.pass .tech-seo-icon { color: #10b981; }
.tech-seo-item.warning .tech-seo-icon { color: #f59e0b; }
.tech-seo-item.fail .tech-seo-icon { color: #ef4444; }
.tech-seo-item.info .tech-seo-icon { color: #3b82f6; }

.tech-seo-item-content { flex: 1; min-width: 0; }
.tech-seo-item-title { display: block; font-size: 0.86rem; font-weight: 600; color: var(--text-main); margin-bottom: 2px; }
.tech-seo-item-detail { display: block; font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.tech-seo-item-suggestion { display: block; font-size: 0.78rem; color: #059669; line-height: 1.5; margin-top: 4px; padding: 5px 8px; background: rgba(16, 185, 129, 0.06); border-radius: 6px; border-left: 2px solid #10b981; }
.tech-seo-item-suggestion i { font-size: 0.7rem; margin-right: 4px; color: #10b981; }

/* Lighthouse SEO Audit Kontrolleri */
.seo-audit-details { margin-bottom: 8px; }

.seo-audit-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.seo-audit-details h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-main); display: flex; align-items: center; gap: 10px; margin: 0; }
.seo-audit-details h3 i { color: var(--primary); }

.seo-audit-summary-badges { display: flex; gap: 8px; }
.seo-audit-count { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 16px; }
.seo-audit-count.pass { background: #d1fae5; color: #065f46; }
.seo-audit-count.fail { background: #fee2e2; color: #991b1b; }
.seo-audit-count.na { background: #f1f5f9; color: #64748b; }

.seo-audit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }

.seo-audit-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: all 0.2s; }
.seo-audit-group:hover { border-color: #a6e6e9; box-shadow: 0 2px 12px rgba(166, 230, 233, 0.12); }
.seo-audit-group.all-pass { border-color: rgba(16, 185, 129, 0.3); }

.seo-audit-group-title { font-size: 0.88rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.seo-audit-group-title i { color: var(--primary); font-size: 0.85rem; }
.seo-audit-group-count { margin-left: auto; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); background: var(--bg-body); padding: 2px 8px; border-radius: 10px; }

.seo-audit-list { display: flex; flex-direction: column; gap: 4px; }
.seo-audit-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 0.84rem; transition: background 0.15s; }
.seo-audit-item:hover { background: var(--bg-body); }

.seo-audit-icon { font-size: 0.85rem; flex-shrink: 0; }
.seo-audit-item.pass .seo-audit-icon { color: #10b981; }
.seo-audit-item.fail .seo-audit-icon { color: #ef4444; }
.seo-audit-item.na .seo-audit-icon { color: #94a3b8; }

.seo-audit-title { flex: 1; color: var(--text-main); font-weight: 500; }

/* SEO Kategori Grid */
.seo-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 18px;
    margin-bottom: 8px;
}

/* SEO Kategori Kartı */
.seo-category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.seo-category-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.seo-category-card.excellent::before { background: #10b981; }
.seo-category-card.good::before { background: #3b82f6; }
.seo-category-card.warning::before { background: #f59e0b; }
.seo-category-card.critical::before { background: #ef4444; }

.seo-category-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(166, 230, 233, 0.15); border-color: #a6e6e9; }

.seo-category-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.seo-category-title-wrap { display: flex; align-items: center; gap: 8px; }
.seo-category-icon { color: var(--primary); font-size: 0.9rem; }
.seo-category-title { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }

.seo-category-score { font-size: 1rem; font-weight: 800; padding: 3px 12px; border-radius: 16px; min-width: 44px; text-align: center; }
.seo-category-score.excellent { background: #d1fae5; color: #065f46; }
.seo-category-score.good { background: #dbeafe; color: #1e40af; }
.seo-category-score.warning { background: #fef3c7; color: #92400e; }
.seo-category-score.critical { background: #fee2e2; color: #991b1b; }

.seo-category-summary { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 12px; }

.seo-issues-block, .seo-suggestions-block { padding: 10px 12px; border-radius: 8px; margin-top: 8px; }
.seo-issues-block { background: rgba(239, 68, 68, 0.04); border: 1px solid rgba(239, 68, 68, 0.12); }
.seo-suggestions-block { background: rgba(16, 185, 129, 0.04); border: 1px solid rgba(16, 185, 129, 0.12); }

.seo-category-issues, .seo-category-suggestions { margin: 0; padding: 0; list-style: none; }
.seo-category-issues li, .seo-category-suggestions li { padding: 4px 0; font-size: 0.83rem; line-height: 1.5; padding-left: 16px; position: relative; }
.seo-category-issues li::before { content: "•"; position: absolute; left: 0; color: #ef4444; font-weight: 700; }
.seo-category-issues li { color: #991b1b; }
.seo-category-suggestions li::before { content: "•"; position: absolute; left: 0; color: #10b981; font-weight: 700; }
.seo-category-suggestions li { color: #065f46; }

.seo-issues-label, .seo-suggestions-label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin: 0 0 6px 0; display: flex; align-items: center; gap: 6px; }
.seo-issues-label { color: #ef4444; }
.seo-issues-label i { font-size: 0.7rem; }
.seo-suggestions-label { color: #10b981; }
.seo-suggestions-label i { font-size: 0.7rem; }


/* SEO Araç Önerileri */
.seo-tools-section { margin-top: 8px; }
.seo-tools-desc { color: var(--text-muted); font-size: 0.88rem; margin: -12px 0 18px 0; }
.seo-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }

.seo-tool-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; }
.seo-tool-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(38, 188, 194, 0.15); border-color: var(--primary); background: var(--primary-pale); }
.seo-tool-card:hover .seo-tool-icon { background: var(--primary); color: white; }
.seo-tool-card:hover .seo-tool-arrow { opacity: 1; transform: translateX(0); }

.seo-tool-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; background: var(--primary-pale); color: var(--primary); transition: all 0.3s; }
.seo-tool-content { flex: 1; min-width: 0; }
.seo-tool-name { font-size: 0.92rem; font-weight: 700; color: var(--text-main); margin-bottom: 3px; }
.seo-tool-reason { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.seo-tool-priority { position: absolute; top: 8px; right: 8px; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.seo-tool-priority.high { background: #fee2e2; color: #991b1b; }
.seo-tool-priority.medium { background: #fef3c7; color: #92400e; }
.seo-tool-priority.low { background: #d1fae5; color: #065f46; }

.seo-tool-arrow { color: var(--primary); font-size: 0.9rem; opacity: 0; transform: translateX(-8px); transition: all 0.3s; flex-shrink: 0; }

/* SEO Analiz - Responsive */
@media (max-width: 768px) {
    .seo-overview-card { grid-template-columns: 1fr; text-align: center; gap: 20px; padding: 20px; }
    .seo-overview-left { flex-direction: row; justify-content: center; gap: 20px; }
    .seo-mini-scores { max-width: none; flex-direction: column; align-items: flex-start; }
    .seo-score-circle { width: 90px; height: 90px; }
    .seo-score-circle .seo-score-value { font-size: 1.6rem; }
    .seo-categories-grid, .seo-audit-grid, .seo-tools-grid, .tech-seo-grid { grid-template-columns: 1fr; }
    .seo-audit-header, .tech-seo-header { flex-direction: column; align-items: flex-start; }
    .seo-category-header { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 480px) {
    .seo-overview-card { padding: 16px; }
    .seo-overview-left { flex-direction: column; }
    .seo-score-circle { width: 80px; height: 80px; border-width: 4px; }
    .seo-score-circle .seo-score-value { font-size: 1.4rem; }
    .seo-category-card { padding: 16px; }
    .seo-tool-card { padding: 12px; }
    .seo-tool-icon { width: 38px; height: 38px; font-size: 1rem; }
    .seo-audit-group, .tech-seo-group { padding: 12px; }
    .tech-seo-item { padding: 6px 8px; }
}

/* SEO Analiz - Dark Mode */
@media (prefers-color-scheme: dark) {
    .seo-overview-card { background: linear-gradient(135deg, rgba(38, 188, 194, 0.08) 0%, rgba(30, 41, 59, 0.8) 100%); border-color: rgba(38, 188, 194, 0.25); }

    .seo-score-circle.excellent { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(30, 41, 59, 0.8)); color: #6ee7b7; }
    .seo-score-circle.good { background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(30, 41, 59, 0.8)); color: #93c5fd; }
    .seo-score-circle.warning { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(30, 41, 59, 0.8)); color: #fcd34d; }
    .seo-score-circle.critical { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(30, 41, 59, 0.8)); color: #fca5a5; }

    .seo-mini-score.excellent { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
    .seo-mini-score.good { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
    .seo-mini-score.warning { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
    .seo-mini-score.critical { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

    .seo-category-card, .seo-audit-group { background: rgba(30, 41, 59, 0.5); border-color: rgba(255, 255, 255, 0.1); }
    .tech-seo-group { background: rgba(30, 41, 59, 0.5); border-color: rgba(255, 255, 255, 0.1); }
    .tech-seo-item:hover { background: rgba(255, 255, 255, 0.03); }
    .tech-seo-item-suggestion { color: #6ee7b7; background: rgba(16, 185, 129, 0.1); border-left-color: #6ee7b7; }
    .tech-seo-score.excellent { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
    .tech-seo-score.good { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
    .tech-seo-score.warning { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
    .tech-seo-score.critical { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
    .seo-audit-count.warn { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
    .seo-category-issues li { color: #fca5a5; }
    .seo-category-suggestions li { color: #6ee7b7; }
    .seo-issues-block { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.2); }
    .seo-suggestions-block { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.2); }

    .seo-category-score.excellent { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
    .seo-category-score.good { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
    .seo-category-score.warning { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
    .seo-category-score.critical { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }

    .seo-tool-card { background: rgba(30, 41, 59, 0.5); border-color: rgba(255, 255, 255, 0.1); }
    .seo-tool-card:hover { background: rgba(38, 188, 194, 0.1); }
    .seo-tool-icon { background: rgba(38, 188, 194, 0.15); }
    .seo-tool-priority.high { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
    .seo-tool-priority.medium { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
    .seo-tool-priority.low { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

    .seo-audit-item:hover { background: rgba(255, 255, 255, 0.03); }
    .seo-audit-count.pass { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
    .seo-audit-count.fail { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
    .seo-audit-count.na { background: rgba(100, 116, 139, 0.2); color: #94a3b8; }
    .seo-audit-group-count { background: rgba(255, 255, 255, 0.05); }

    .seo-issues-label { color: #fca5a5; }
    .seo-suggestions-label { color: #6ee7b7; }

    .seo-ai-badge { background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%); box-shadow: 0 2px 6px rgba(99, 102, 241, 0.5); }
}
