/* ==========================================================================
   AdSense Policy Scanner - Enhanced Styles
   Version: 2.1 (upgraded Feb 2025 → 2026 look)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   Root Variables
   ========================================================================== */
:root {
    --color-bg:        #f8fafc;
    --color-surface:   #ffffff;
    --color-text:      #0f172a;
    --color-text-muted:#64748b;
    --color-border:    #e2e8f0;

    --brand-50:  #f0fdfa;
    --brand-100: #ccfbf1;
    --brand-200: #99f6e4;
    --brand-300: #5eead4;
    --brand-400: #2dd4bf;
    --brand-500: #14b8a6;
    --brand-600: #0d9488;
    --brand-700: #0f766e;
    --brand-800: #115e59;
    --brand-900: #134e4a;
    --brand-950: #042f2e;

    --success-500: #10b981;
    --warning-500: #f59e0b;
    --danger-500:  #ef4444;

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md:  0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg:  0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl:  0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

    --radius-lg:   1.5rem;
    --radius-xl:   2rem;
    --radius-2xl:  2.5rem;

    --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg:        #0f172a;
        --color-surface:   #1e293b;
        --color-text:      #f1f5f9;
        --color-text-muted:#94a3b8;
        --color-border:    #334155;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Typography & Selection
   ========================================================================== */
::selection {
    background: var(--brand-600);
    color: white;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.875rem, 5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2.25rem); }

/* ==========================================================================
   Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 9999px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.8);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes progress {
    0%   { width: 0%; }
    40%  { width: 65%; }
    70%  { width: 85%; }
    90%  { width: 92%; }
    100% { width: 95%; } /* wait for real completion */
}

.animate-progress {
    animation: progress 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transition: width 0.4s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.list-item-enter {
    opacity: 0;
    transform: translateX(-16px);
    animation: slideInRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

@supports not (backdrop-filter: blur(16px)) {
    .glass-panel {
        background: rgba(255, 255, 255, 0.9);
    }
}

/* Focus states for accessibility */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.4);
}

/* Hover lift effect (used on cards/buttons) */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Form & Input Enhancements
   ========================================================================== */
input[type="url"] {
    transition: all 0.25s ease;
}

input[type="url"]:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
    background: white;
}

/* ==========================================================================
   Score Circle (used in results)
   ========================================================================== */
#score-circle {
    transition: stroke-dashoffset 2s cubic-bezier(0.34, 1.56, 0.64, 1), 
                stroke 1.2s ease;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 640px) {
    h1 { font-size: 2.8rem; line-height: 1.05; }
    .glass-panel { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}