/*
Theme Name: AISaaScore
Theme URI: https://aisaascore.com
Author: AISaaScore Team
Author URI: https://aisaascore.com
Description: Fast, secure, and accessible WordPress theme optimized for software reviews, comparisons, and AdSense monetization. Features built-in security enhancements, local icon system, and GDPR compliance.
Version: 1.0.9
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aisaascore
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, accessibility-ready
*/

/* ============================================
   MODERN ENTERPRISE DESIGN SYSTEM V1.0.8
   Complete Visual Overhaul - Professional B2B
   ============================================ */

:root {
    /* COMPLETELY NEW COLOR PALETTE - ENTERPRISE GRADE */
    --primary: #0066CC;          /* IBM Blue - Main brand */
    --primary-dark: #0052A3;     /* Darker for hover */
    --primary-light: #4D94FF;    /* Light accent */
    --secondary: #00BFA5;        /* Teal accent - CTAs */
    --tertiary: #7C4DFF;         /* Purple - Premium features */
    
    /* Professional Grays - High Contrast */
    --gray-50: #FAFBFC;
    --gray-100: #F4F6F8;
    --gray-200: #E8ECF0;
    --gray-300: #D6DDE5;
    --gray-400: #B8C4D0;
    --gray-500: #8B98A8;
    --gray-600: #6B7A8C;
    --gray-700: #4A5568;
    --gray-800: #2D3748;
    --gray-900: #1A202C;
    
    /* Semantic Colors */
    --success: #00C853;
    --warning: #FFB300;
    --error: #F44336;
    --info: #2196F3;
    
    /* Layout Variables */
    --max-width: 1400px;
    --header-height: 80px;
    --sidebar-width: 340px;
    
    /* Typography Scale */
    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Plus Jakarta Sans', var(--font-base);
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Shadows - Modern Depth */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.16), 0 2px 4px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    
    /* Borders & Radius */
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* DARK MODE COLOR SYSTEM */
[data-theme="dark"],
.dark-mode {
    --primary: #4D94FF;
    --primary-dark: #0066CC;
    --primary-light: #80B3FF;
    --secondary: #00E5CC;
    --tertiary: #9C88FF;
    
    --gray-50: #1A1F2E;
    --gray-100: #212836;
    --gray-200: #2A3342;
    --gray-300: #3A4556;
    --gray-400: #4E5B6E;
    --gray-500: #6B7A8C;
    --gray-600: #8B98A8;
    --gray-700: #B8C4D0;
    --gray-800: #E8ECF0;
    --gray-900: #F4F6F8;
    
    --success: #00E676;
    --warning: #FFC107;
    --error: #FF5252;
    --info: #40C4FF;
}

/* BASE STYLES - COMPLETE RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-base);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    min-height: 100vh;
}

/* Light mode body */
body:not([data-theme="dark"]) {
    background: linear-gradient(135deg, #FFFFFF 0%, var(--gray-50) 100%);
    color: var(--gray-800);
}

/* Dark mode body */
[data-theme="dark"] body,
body.dark-mode {
    background: linear-gradient(135deg, var(--gray-50) 0%, #0F1419 100%);
    color: var(--gray-800);
}

/* TYPOGRAPHY - MODERN SCALE */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    margin: 2rem 0 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-dark);
}

h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--gray-700);
}

/* LINKS - MODERN STYLE */
a {
    color: var(--primary);
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    color: var(--primary-dark);
}

a:not(.button):not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

a:not(.button):not(.btn):hover::after {
    width: 100%;
}

/* MODERN CONTAINERS */
.site-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.content-area {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .content-area {
    background: var(--gray-100);
}

/* HEADER - ENHANCED CORPORATE NAVIGATION */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--primary-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 0;
}

[data-theme="dark"] .site-header {
    background: rgba(26, 31, 46, 0.95);
    border-bottom: 2px solid var(--primary);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    min-height: var(--header-height);
}

/* Site Branding */
.site-branding {
    flex-shrink: 0;
}

.site-branding .site-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin: 0;
    line-height: 1.2;
}

.site-branding .site-title h1 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.site-tagline {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
    display: block;
}

/* Main Navigation Container */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Software Categories Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.nav-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-button:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.nav-icon {
    width: 20px;
    height: 20px;
}

.dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-button[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mega Menu Dropdown */
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    min-width: 600px;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="dark"] .nav-dropdown-menu {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
}

.dropdown-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.dropdown-column {
    min-height: 200px;
}

.dropdown-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-light);
}

[data-theme="dark"] .dropdown-heading {
    color: var(--primary-light);
}

.dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-list li {
    margin-bottom: 0.5rem;
}

.dropdown-list a {
    color: var(--gray-700);
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    transition: all 0.2s ease;
    border-radius: 4px;
}

[data-theme="dark"] .dropdown-list a {
    color: var(--gray-700);
}

.dropdown-list a:hover {
    color: var(--primary);
    background: rgba(0, 102, 204, 0.1);
    transform: translateX(4px);
}

.dropdown-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

[data-theme="dark"] .dropdown-footer {
    border-top: 1px solid var(--gray-300);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Main Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

[data-theme="dark"] .nav-link {
    color: var(--gray-700);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(0, 102, 204, 0.1);
}

.nav-link.current-page {
    color: var(--primary);
    background: rgba(0, 102, 204, 0.1);
}

.nav-link.current-page::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* Header Search */
.header-search {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.search-toggle:hover {
    background: var(--gray-100);
    color: var(--primary);
}

[data-theme="dark"] .search-toggle:hover {
    background: var(--gray-200);
}

.search-form-wrapper {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    padding: 1rem;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 0.5rem;
}

[data-theme="dark"] .search-form-wrapper {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
}

/* Header CTA */
.header-cta .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

[data-theme="dark"] .mobile-menu {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-300);
}

.mobile-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 2rem;
}

.mobile-search {
    margin-bottom: 2rem;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    margin-bottom: 1rem;
}

.mobile-nav-item a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 0;
    display: block;
    border-bottom: 1px solid var(--gray-100);
    transition: color 0.2s ease;
}

[data-theme="dark"] .mobile-nav-item a {
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-nav-item a:hover {
    color: var(--primary);
}

.mobile-nav-toggle {
    background: none;
    border: none;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
}

[data-theme="dark"] .mobile-nav-toggle {
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.mobile-nav-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav-toggle[aria-expanded="true"] + .mobile-submenu {
    max-height: 500px;
    padding-top: 1rem;
}

.mobile-submenu li {
    margin-bottom: 0.5rem;
}

.mobile-submenu a {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-bottom: none;
    background: var(--gray-50);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .mobile-submenu a {
    color: var(--gray-600);
    background: var(--gray-200);
}

.mobile-submenu a:hover {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
}

/* RESPONSIVE NAVIGATION STYLES */
@media (max-width: 1200px) {
    .dropdown-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-dropdown-menu {
        min-width: 500px;
    }
}

@media (max-width: 1024px) {
    .header-container {
        padding: 1rem;
    }
    
    .nav-container {
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
    }
    
    .site-branding .site-title {
        font-size: 1.5rem;
    }
    
    .nav-container {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .dropdown-columns {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-dropdown-menu {
        min-width: 280px;
        padding: 1rem;
        left: auto;
        right: 0;
    }
    
    .mobile-menu {
        top: var(--header-height);
    }
}

@media (max-width: 480px) {
    .site-header {
        border-bottom: 1px solid var(--gray-200);
    }
    
    .header-container {
        padding: 0.5rem;
        min-height: 70px;
    }
    
    .site-branding .site-title {
        font-size: 1.25rem;
    }
    
    .site-tagline {
        font-size: 0.75rem;
    }
    
    .mobile-menu-content {
        padding: 1rem;
    }
    
    .mobile-nav-item a {
        font-size: 1rem;
        padding: 0.75rem 0;
    }
    
    .nav-dropdown-menu {
        min-width: 250px;
        padding: 0.75rem;
    }
    
    .dropdown-heading {
        font-size: 1rem;
    }
}

/* MODERN CARDS */
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
}

[data-theme="dark"] .card {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

/* BUTTONS - MODERN DESIGN */
.button,
.btn,
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 102, 204, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* TABLES - COMPLETE REDESIGN */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin: 2rem 0;
}

[data-theme="dark"] table {
    background: var(--gray-100);
}

thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

th {
    padding: 1.25rem;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.875rem;
}

tbody tr {
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: var(--gray-50);
}

[data-theme="dark"] tbody tr:hover {
    background: var(--gray-200);
}

td {
    padding: 1.25rem;
    color: var(--gray-700);
}

[data-theme="dark"] td {
    color: var(--gray-700);
}

/* Zebra striping */
tbody tr:nth-child(even) {
    background: var(--gray-50);
}

[data-theme="dark"] tbody tr:nth-child(even) {
    background: var(--gray-200);
}

/* FORMS - MODERN INPUTS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    background: white;
    transition: all 0.3s ease;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-800);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* BLOCKQUOTES - MODERN STYLE */
blockquote {
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2rem 0;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    font-style: italic;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary);
    position: absolute;
    top: -1rem;
    left: 1rem;
    opacity: 0.3;
}

/* CODE BLOCKS - MODERN TERMINAL STYLE */
pre {
    background: #1E293B;
    color: #E2E8F0;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--primary);
}

pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* SIDEBAR - MODERN DESIGN */
.sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .sidebar {
    background: var(--gray-100);
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

/* FOOTER - MODERN PROFESSIONAL STYLE */
.site-footer {
    position: relative;
    background: linear-gradient(135deg, 
        var(--gray-100) 0%, 
        var(--gray-200) 25%, 
        var(--gray-100) 50%, 
        var(--gray-50) 100%);
    color: var(--gray-700);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--gray-200);
    overflow: hidden;
}

/* Footer pattern overlay for visual interest */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 102, 204, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 191, 165, 0.02) 0%, transparent 50%),
        linear-gradient(90deg, transparent 50%, rgba(124, 77, 255, 0.01) 50%);
    pointer-events: none;
}

/* Dark mode footer styling */
[data-theme="dark"] .site-footer {
    background: linear-gradient(135deg, 
        var(--gray-200) 0%, 
        var(--gray-300) 25%, 
        var(--gray-200) 50%, 
        var(--gray-100) 100%);
    color: var(--gray-600);
    border-top: 1px solid var(--gray-400);
}

[data-theme="dark"] .site-footer::before {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(77, 148, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 229, 204, 0.05) 0%, transparent 50%),
        linear-gradient(90deg, transparent 50%, rgba(156, 136, 255, 0.03) 50%);
}

.footer-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 1;
}

/* Footer section styling */
.footer-section {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .footer-section {
    background: rgba(42, 51, 66, 0.6);
    border: 1px solid rgba(184, 196, 208, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.footer-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .footer-section:hover {
    background: rgba(42, 51, 66, 0.8);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Footer headings */
.footer-section h3,
.footer-section .widget-title {
    color: var(--gray-800);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    position: relative;
}

[data-theme="dark"] .footer-section h3,
[data-theme="dark"] .footer-section .widget-title {
    color: var(--gray-700);
}

/* Footer links */
.footer-section a {
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

[data-theme="dark"] .footer-section a {
    color: var(--gray-500);
}

[data-theme="dark"] .footer-section a:hover {
    color: var(--primary-light);
}

/* Footer list styling */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.footer-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    transition: all 0.3s ease;
}

.footer-section li:hover::before {
    transform: translateX(4px);
    color: var(--primary-dark);
}

/* Footer bottom section */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--gray-600);
    background: rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(5px);
}

[data-theme="dark"] .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-500);
    background: rgba(42, 51, 66, 0.4);
}

/* Social icons in footer */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.footer-social a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
    background: var(--primary-dark);
}

[data-theme="dark"] .footer-social a {
    background: var(--primary-light);
}

[data-theme="dark"] .footer-social a:hover {
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(77, 148, 255, 0.4);
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .footer-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-section {
        padding: 1rem;
    }
    
    .footer-social {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
    }
}

/* ADSENSE ZONES - PROFESSIONAL STYLE */
.adsense-zone {
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    min-height: 100px;
}

.adsense-zone::before {
    content: 'Advertisement';
    position: absolute;
    top: -12px;
    left: 1rem;
    background: white;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="dark"] .adsense-zone {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

[data-theme="dark"] .adsense-zone::before {
    background: var(--gray-100);
}

/* MODERN ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade {
    animation: fadeIn 0.6s ease;
}

.animate-slide {
    animation: slideIn 0.4s ease;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* UTILITY CLASSES */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .site-container {
        padding: 0 1.5rem;
    }
    
    .content-area {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .content-area {
        padding: 1.5rem;
        border-radius: var(--border-radius);
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 1rem;
    }
    
    .site-container {
        padding: 0 1rem;
    }
    
    .content-area {
        padding: 1rem;
    }
}

/* ACCESSIBILITY */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    :root {
        --primary: #0052CC;
        --gray-900: #000000;
        --gray-50: #FFFFFF;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* PRINT STYLES */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .adsense-zone,
    .navigation {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: black;
        background: white;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}