/* =============================================
   Web Site Value Calculator — Ana Stil Dosyası
   ============================================= */

:root {
    --primary:        #1e3a5f;   /* Kurumsal koyu lacivert */
    --primary-hover:  #16304f;
    --primary-light:  #254a75;
    --accent:         #f0a500;   /* Altın sarısı vurgu */
    --success:        #1a7f5a;
    --bg-body:        #f0f2f5;
    --bg-card:        #ffffff;
    --text-main:      #1a1e2e;
    --text-muted:     #6b7280;
    --border-color:   #e5e9f0;
    --shadow-sm:      0 1px 4px rgba(30,58,95,.07);
    --shadow-md:      0 4px 16px rgba(30,58,95,.10);
    --shadow-lg:      0 8px 32px rgba(30,58,95,.13);
    --radius-sm:      8px;
    --radius:         14px;
    --radius-lg:      20px;
    --font-base:      'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-base);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.65;
}

/* ---- Navbar ---- */
.navbar.bg-primary,
nav.navbar.bg-primary {
    background: var(--primary) !important;
    box-shadow: 0 2px 12px rgba(30,58,95,.18);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.navbar-brand {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -.25px;
    color: #fff !important;
}

.navbar-nav .nav-link {
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .1px;
    color: rgba(255,255,255,.78) !important;
    border-radius: 6px;
    padding: .4rem .75rem !important;
    transition: color .15s, background .15s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,.1);
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #254a75 55%, #1a6094 100%);
    position: relative;
    overflow: hidden;
    padding: 3.5rem 2rem;
    border-radius: var(--radius-lg) !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -8%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-icon { opacity: .9; }

.url-form .input-group {
    border-radius: var(--radius) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.url-form .form-control {
    font-size: 1rem;
    border: none;
    padding: .85rem 1rem;
}
.url-form .form-control:focus { box-shadow: none; }
.url-form .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }

/* ---- Cards ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
}
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.card.shadow   { box-shadow: var(--shadow-md) !important; }

/* ---- Feature Cards ---- */
.feature-card {
    border-radius: var(--radius) !important;
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}
.feature-icon { line-height: 1; }

/* ---- Stats Bar ---- */
.stats-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
}
.stat-number {
    font-size: 2.4rem;
    line-height: 1.1;
    font-weight: 800;
}

/* ---- Site Cards (index recent) ---- */
.site-card {
    border-radius: var(--radius) !important;
    transition: transform .18s, box-shadow .18s;
}
.site-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md) !important;
}

/* ---- How it works ---- */
.step-circle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(30,58,95,.2);
}

/* ---- Result Page ---- */
.value-hero .card-body { padding: 0; }
.value-panel {
    background: linear-gradient(160deg, #eaf4f0 0%, #f0f8f4 100%);
    border-left: 1px solid var(--border-color);
}
.value-amount {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #1a7f5a, #15a672);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* SEO score bar */
.seo-score-bar { background: #f7f9fc !important; }
.seo-item:last-child { border-bottom: none !important; }
.seo-item { transition: background .1s; border-radius: var(--radius-sm); }
.seo-item:hover { background: #f7f9fc; }

/* Value components */
.value-component {
    transition: background .15s, border-color .15s;
    border-color: var(--border-color) !important;
}
.value-component:hover {
    background: #eef2fa !important;
    border-color: #c8d5eb !important;
}

/* Quick stat cards */
.quick-stat-card {
    border-radius: var(--radius) !important;
    border: 1px solid var(--border-color) !important;
    background: #fff;
}
.tiny { font-size: .74rem; }

/* ---- Typo badges ---- */
.typo-badge {
    font-size: .8rem;
    font-weight: 500;
    border-radius: 20px !important;
    transition: all .15s;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}
.typo-badge:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    text-decoration: none;
}

/* ---- Similar site cards ---- */
.similar-card {
    transition: transform .15s, box-shadow .15s;
    border-color: var(--border-color) !important;
}
.similar-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md) !important;
}

/* ---- Recent page table ---- */
.table th {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .4px;
    color: var(--text-muted);
    text-transform: uppercase;
    background: #f7f9fc;
}
.table-hover > tbody > tr:hover > td {
    background: #f0f4fb;
}

/* ---- Progress bar ---- */
.progress {
    background: #e9ecf0;
    border-radius: 10px;
}
.progress-bar-animated {
    animation: progress-bar-stripes .8s linear infinite;
}

/* ---- Form Controls ---- */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(30,58,95,.1);
}

/* ---- Buttons ---- */
.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

/* ---- Alerts ---- */
.alert { border-radius: var(--radius-sm) !important; }

/* ---- Contact page ---- */
.captcha-question {
    min-width: 160px;
    text-align: center;
    font-family: 'Courier New', monospace;
    background: #f7f9fc;
    border-radius: var(--radius-sm);
    font-weight: 700;
}
.contact-icon-wrap { font-size: 1.5rem; }

/* ---- How it works ---- */
.how-it-works {
    background: linear-gradient(135deg, #f7f9fc 0%, #eef2fa 100%) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
}

/* ---- Footer ---- */
.site-footer {
    background: linear-gradient(160deg, #111827 0%, #1a2234 100%);
    border-top: 3px solid var(--primary);
}
.footer-muted {
    color: rgba(255,255,255,.5);
}
.footer-link {
    color: rgba(255,255,255,.72);
    text-decoration: none;
    font-size: .875rem;
    transition: color .15s;
    display: inline-block;
}
.footer-link:hover {
    color: var(--accent);
    text-decoration: none;
}
.text-accent { color: var(--accent) !important; }
.footer-hr {
    border-color: rgba(255,255,255,.08);
}

/* ---- Admin sidebar badges ---- */
.badge.rounded-circle {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    padding: 0;
}

/* ---- Loading overlay ---- */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.92);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* ---- Badges ---- */
.badge {
    font-weight: 600;
    letter-spacing: .2px;
}

/* ---- Pagination ---- */
.page-link {
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    color: var(--primary);
    border-color: var(--border-color);
    font-size: .875rem;
}
.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}
.page-link:hover { color: var(--primary); }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: .5rem;
        padding: .5rem 0;
        border-top: 1px solid rgba(255,255,255,.1);
    }
}
@media (max-width: 768px) {
    .hero-section { padding: 2rem 1rem; }
    .value-panel {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    .value-amount { font-size: 2.2rem; }
    .stat-number  { font-size: 1.8rem; }
    .hero-section .display-5 { font-size: 1.7rem; }
}
