@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    /* 2026 Clean White Theme */
    --bg-color: #ffffff;
    --bg-subtle: #f8fafc;
    --text-main: #0f172a;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --primary: #1a3a5c;
    --primary-dark: #0f2540;
    --primary-glow: rgba(26, 58, 92, 0.2);
    --primary-light: #e8f0f8;
    --primary-mid: #a8c0d8;

    --secondary: #1e5f8a;
    --secondary-glow: rgba(30, 95, 138, 0.2);

    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --info: #3b82f6;
    --info-bg: #eff6ff;

    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --border-light: #f1f5f9;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.03);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.07), 0 4px 10px rgba(0,0,0,0.03);
    --shadow-floating: 0 20px 50px rgba(99,102,241,0.12);

    --glass-bg: #ffffff;
    --glass-border: var(--card-border);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

section {
    padding: 3rem 0;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatAnim {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulseAnim {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 var(--primary-glow);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 15px rgba(79, 70, 229, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
    animation: floatAnim 6s ease-in-out infinite;
}

/* Base Card (Bento Style) */
.glass-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    width: 95%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: fadeUp 0.5s ease-out;
}

/* Gradient accent text */
.neon-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 900;
}

/* =========================================================================
   NEW PREMIUM GLOBAL HEADER
========================================================================= */
.main-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    height: 68px;
    display: flex;
    align-items: center;
    transition: box-shadow 0.2s ease;
}

.main-header.scrolled {
    height: 60px;
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
    border-bottom-color: #e2e8f0;
}

.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.05em;
}

.logo i {
    font-size: 1.5rem;
    color: var(--primary);
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.nav-links>li {
    position: relative;
}

.nav-links>li>a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links>li>a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-links>li:hover>a {
    color: var(--primary);
    background: rgba(99,102,241,0.05);
}

.nav-links>li:hover>a i {
    transform: rotate(180deg);
}

.nav-links>li>a.active {
    color: var(--primary);
    background: rgba(99,102,241,0.08);
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 700px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-links>li.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.mega-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-col h4 i {
    color: var(--primary);
}

.mega-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-col ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 0;
    display: block;
    transition: all 0.2s ease;
}

.mega-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-premium {
    background: var(--primary);
    color: #fff;
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
    box-shadow: 0 1px 4px rgba(99,102,241,0.3);
    border: none;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.btn-premium:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.35);
}

/* Mobile Menu Button - New Style */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2.5px;
    background: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Header */
@media (max-width: 1024px) {
    .main-header {
        height: 70px;
    }

    .nav-container {
        padding: 0 20px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        z-index: 1001;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 100px 30px 40px;
        overflow-y: auto;
        display: block;
    }

    .main-nav.active {
        left: 0;
    }

    .main-nav .nav-links {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links>li>a {
        font-size: 1.2rem;
        padding: 15px 0;
        width: 100%;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 20px 0 20px 20px;
        display: none;
        background: transparent;
        border: none;
    }

    .nav-links>li.has-dropdown:hover .mega-menu {
        transform: none;
    }

    .nav-links>li.has-dropdown.active .mega-menu {
        display: block;
    }

    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-actions .btn-premium {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Global Footer */
.main-footer {
    background: var(--bg-subtle);
    border-top: 1px solid var(--card-border);
    padding: 3.5rem 20px 2rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 4rem;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
    /* Tiny hover shift */
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 4rem 20px 3rem;
    background: #ffffff;
}

.hero-section h1 {
    font-size: clamp(2.4rem, 5vw, 3.75rem);
    margin-bottom: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-main);
    line-height: 1.1;
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Stats bar below hero input */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-stat-item i {
    color: var(--primary);
    font-size: 0.9rem;
}

.hero-stat-item strong {
    color: var(--text-main);
    font-weight: 700;
}

/* Input Group */
.input-group {
    display: flex;
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px 6px 6px 0;
    border: 1.5px solid var(--card-border);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    max-width: 640px;
    margin: 0 auto;
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.input-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.2rem;
}

#url-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    padding: 12px 16px 12px 48px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 400;
    outline: none;
    width: 100%;
}

#url-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

#analyze-btn {
    background: var(--primary);
    border: none;
    border-radius: 8px;
    padding: 0 28px;
    height: 44px;
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
    letter-spacing: -0.01em;
}

#analyze-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Loading */
.spinner {
    border: 4px solid var(--border-light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 30px auto;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Results Section */
.results-section {
    padding: 3rem 0;
    /* Reduced from 4rem */
    width: 100%;
    background: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Circular Chart */
.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 160px;
    max-height: 160px;
    border-radius: 50%;
}

@keyframes pulseSuccess {
    0% {
        filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(34, 197, 94, 0.7));
    }

    100% {
        filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.2));
    }
}

@keyframes pulseWarning {
    0% {
        filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(245, 158, 11, 0.7));
    }

    100% {
        filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.2));
    }
}

@keyframes pulseDanger {
    0% {
        filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(239, 68, 68, 0.7));
    }

    100% {
        filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.2));
    }
}

.circle-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3.2;
    stroke-linecap: round;
    transition: stroke-dasharray 2s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.5s ease;
}

.percentage {
    fill: var(--text-main);
    font-family: inherit;
    font-size: 8px;
    font-weight: 800;
    text-anchor: middle;
}

.score-container {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeUp 0.8s ease;
}

.score-label {
    margin-top: 15px;
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 3rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-card.success {
    border-bottom: 4px solid var(--success);
}

.stat-card.success i {
    color: var(--success);
}

.stat-card.warning {
    border-bottom: 4px solid var(--warning);
}

.stat-card.warning i {
    color: var(--warning);
}

.stat-card.error {
    border-bottom: 4px solid var(--danger);
}

.stat-card.error i {
    color: var(--danger);
}

.stat-card h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    font-weight: 800;
    color: var(--text-main);
}

.stat-card p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.tab-btn {
    background: #ffffff;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.tab-btn:hover {
    background: var(--bg-color);
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.tab-contents {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    min-height: 400px;
    box-shadow: var(--shadow-sm);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeUp 0.4s ease;
}

/* Result Cards */
.result-card {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    gap: 15px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border-color: #cbd5e1;
}

.result-status-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    background: var(--bg-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.result-status-icon.success {
    color: var(--success);
    background: var(--success-bg);
}

.result-status-icon.warning {
    color: var(--warning);
    background: var(--warning-bg);
}

.result-status-icon.error {
    color: var(--danger);
    background: var(--danger-bg);
    animation: dangerPulse 2s infinite;
}

@keyframes dangerPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.result-content {
    flex-grow: 1;
}

.result-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.result-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.result-solution {
    background: rgba(99,102,241,0.04);
    border-left: 3px solid var(--primary);
    padding: 0.8rem 1rem;
    border-radius: 0 6px 6px 0;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.result-solution strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 3rem;
}

.btn {
    padding: 15px 30px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.btn-primary:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-outline {
    background: #ffffff;
    color: var(--text-main);
    border: 2px solid var(--card-border);
}

.btn-outline:hover {
    background: var(--bg-color);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.error-box {
    margin-top: 25px;
    color: #991b1b;
    background: var(--danger-bg);
    border: 1px solid #f87171;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 600;
    animation: fadeUp 0.3s ease;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left !important;
}

.text-muted {
    color: var(--text-muted);
}

.pt-5 {
    padding-top: 4rem;
}

.pb-5 {
    padding-bottom: 4rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 4rem;
}

.d-inline-flex {
    display: inline-flex;
}

/* Forms / Inputs (Tools) */
.modern-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 2px solid var(--card-border);
    color: var(--text-main);
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
    display: block;
    margin-bottom: 8px;
}

textarea.modern-input {
    resize: vertical;
    min-height: 120px;
}

/* Guide & Blog & Tools List */
.guide-wrapper,
.tools-wrapper {
    padding: 4rem 0;
    min-height: 70vh;
}

.tools-hero,
.guide-hero {
    margin-bottom: 3rem;
}

.tools-hero h1,
.guide-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.article-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-mid);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    border-radius: 3px 3px 0 0;
}

.article-card:hover::before {
    transform: scaleX(1);
}

.article-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    background: var(--primary-light);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.article-card:hover .article-icon {
    background: var(--primary);
    color: white;
}

.article-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.article-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
}

/* Detail Pages (Tool Execution / Article Reading) */
.tool-detail,
.article-detail {
    padding-top: 2rem;
}

.article-detail .glass-container,
.tool-detail .glass-container {
    max-width: 900px;
    padding: 4rem;
    background: #ffffff;
    border-radius: 32px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 2.5rem;
    font-weight: 600;
    transition: color 0.3s;
    background: var(--bg-color);
    padding: 10px 20px;
    border-radius: 30px;
}

.back-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.article-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 2rem;
}

.article-big-icon {
    font-size: 3.5rem;
    color: var(--primary);
    background: var(--primary-light);
    width: 90px;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 24px;
}

.article-header h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 800;
    color: var(--text-main);
}

.article-lead {
    font-size: 1.3rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 500;
}

.glass-divider {
    border: 0;
    height: 1px;
    background: var(--card-border);
    margin: 3rem 0;
}

.article-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--text-main);
    font-weight: 800;
}

.article-content p,
.article-content li {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #334155;
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.article-content code {
    background: var(--bg-color);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--secondary);
    font-family: monospace;
    font-weight: 600;
    border: 1px solid var(--card-border);
}

.cta-box {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(79, 70, 229, 0.1));
    border: 2px dashed var(--primary);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.cta-box h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
}

.cta-box p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 3rem 15px;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .input-group {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
    }

    .input-icon {
        top: 35px;
    }

    #url-input {
        padding: 15px 15px 15px 45px;
    }

    #analyze-btn {
        margin-top: 15px;
        padding: 18px;
        justify-content: center;
        width: 100%;
        border-radius: 12px;
    }

    .stats-cards {
        grid-template-columns: 1fr;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        border-bottom: 1px solid var(--border-light);
        padding: 1.5rem 0;
        display: none;
        box-shadow: var(--shadow-md);
    }

    .main-nav.active {
        display: block;
        animation: fadeUp 0.3s ease;
    }

    .main-nav .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .glass-container {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .article-header {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================================================
   PHASE 19 SUB-HEADER NAV (ALT MENÜ)
========================================================================= */
/* Sub-header nav deleted - integrated into main header */

/* Floating Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99,102,241,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}

/* Code Copy Enhancements */
.code-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.copy-btn {
    position: absolute;
    top: -10px;
    right: -5px;
    background: #fff;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.copy-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: var(--primary-dark);
    word-break: break-all;
}

.dropdown-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
    background: var(--bg-color);
    color: var(--primary);
}

/* Homepage Rich Content Sections */
.homepage-content {
    margin-top: -2rem;
    padding-bottom: 2rem;
}

.home-section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-light);
    background: var(--bg-color);
}

.section-head {
    text-align: center;
    margin-bottom: 2rem;
}

.section-head h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.section-head p {
    color: var(--text-muted);
}

/* Compact Tools Grid */
.tools-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.tool-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem 0.75rem;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.tool-item:hover {
    background: #fff;
    border-color: var(--primary-mid);
    box-shadow: var(--shadow-sm);
}

.tool-item i {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.tool-item span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-img {
    height: 160px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}

.feature-body {
    padding: 1.25rem;
}

.feature-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.feature-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Info Section */
.info-box {
    background: var(--primary-light);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    gap: 30px;
    align-items: center;
}

.info-text {
    flex: 1;
}

.info-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.info-text p {
    color: var(--text-main);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .info-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}

/* Mobile Scroll Support */
@media (max-width: 1024px) {
    .sub-nav-links {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 2px;
        -webkit-overflow-scrolling: touch;
        /* smooth scroll on iOS */
    }

    .sub-nav-links::-webkit-scrollbar {
        height: 6px;
        display: none;
        /* Hide scrollbar for cleaner look */
    }
}

/* --- PREMIUM UI UPGRADES (PHASE 36) --- */

/* Skeleton Loaders */
.skeleton {
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px 0 rgba(255, 255, 255, 0.2) inset;
}

.skeleton::before {
    content: '';
    display: block;
    position: absolute;
    left: -150px;
    top: 0;
    height: 100%;
    width: 150px;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    animation: skeleton-load 1.5s cubic-bezier(0.4, 0.0, 0.2, 1) infinite;
}

@keyframes skeleton-load {
    from {
        left: -150px;
    }

    to {
        left: 100%;
    }
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 12px;
    width: 60%;
}

.skeleton-block {
    height: 100px;
    width: 100%;
}

/* Progress Bars */
.progress-bar-container {
    width: 100%;
    background-color: var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    height: 12px;
    margin-top: 10px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
    background: var(--primary);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--text-main);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toast-slide-in 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast i {
    font-size: 1.1rem;
    color: var(--success);
}

.toast.toast-error i {
    color: var(--danger);
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-fade-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(10px);
        opacity: 0;
    }
}

/* Recent Checks (History) Drawer/List */
.recent-checks-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.recent-checks-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.recent-checks-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: white;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-main);
}

.recent-check-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.recent-check-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--info-bg);
    color: var(--info);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.recent-check-content {
    flex: 1;
}

.recent-check-domain {
    font-size: 0.95rem;
    font-weight: 600;
    display: block;
}

.recent-check-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.clear-history-btn {
    font-size: 0.8rem;
    color: var(--danger);
    cursor: pointer;
    border: none;
    background: none;
}

.clear-history-btn:hover {
    text-decoration: underline;
}
/* =========================================================================
   2026 REDESIGN — ADDITIONS
========================================================================= */

/* Hero badge */
.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 1.4rem;
}

/* section-head headings tighter */
.section-head h2 {
    letter-spacing: -0.03em;
}

/* Tool detail glass-container update */
.tool-detail .glass-container,
.article-detail .glass-container {
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    max-width: 860px;
}

/* Modern input — tool pages */
.modern-input {
    border-radius: var(--radius-md) !important;
    border-color: var(--card-border) !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    font-size: 0.95rem !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

.modern-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1) !important;
    outline: none !important;
}

/* Back link */
.back-link {
    border-radius: var(--radius-sm) !important;
    font-size: 0.875rem !important;
}

/* Result card radius */
.result-card {
    border-radius: var(--radius-md) !important;
}

/* Tab buttons */
.tab-btn {
    border-radius: 8px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    padding: 9px 20px !important;
}

/* ── Mobile Bottom Navigation ──────────────────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--card-border);
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 999;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.mobile-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    min-width: 60px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: color 0.15s;
}

.mob-nav-item i {
    font-size: 1.25rem;
}

.mob-nav-item.active,
.mob-nav-item:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: block;
    }
    /* Add bottom padding so content isn't hidden behind nav */
    body {
        padding-bottom: 70px;
    }
    /* Hide desktop nav actions on mobile */
    .header-actions .btn-premium {
        display: none;
    }
}

/* ── Araclar hero strip ─────────────────────────────────────────────────── */
.tools-hero-strip {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-light);
    padding: 2.5rem 20px 2rem;
    text-align: center;
}

.tools-hero-strip h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.tools-hero-strip p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Info box ───────────────────────────────────────────────────────────── */
.info-box {
    background: var(--primary-light);
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--primary-mid);
}

.info-text h3 {
    color: var(--primary-dark) !important;
    letter-spacing: -0.02em;
}

/* ── auto-copy-btn ──────────────────────────────────────────────────────── */
.auto-copy-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.auto-copy-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-mid);
}

/* ── Progress bar ───────────────────────────────────────────────────────── */
.progress-bar-container {
    background: var(--border-light);
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
    width: 0%;
}

/* ── Reklam Alanları ────────────────────────────────────────────── */
.ad-zone {
    min-height: 0;
    overflow: hidden;
}

.ad-zone ins {
    display: block;
}

/* Reklam boşken alan kaplamaz */
.ad-zone:empty {
    display: none;
}

@media (max-width: 768px) {
    .ad-zone-header_banner,
    .ad-zone-footer_top {
        min-height: 50px;
    }
}
