/**
 * MILCOMTEC - Main Styles
 * Custom styles for the Milcomtec website
 */

/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 0;
    background: var(--primary-500);
    color: white;
    padding: var(--space-4);
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 var(--radius-lg) 0;
}

.skip-link:focus {
    top: 0;
}

/* Cinematic Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    z-index: 1;
    background: var(--neutral-900);
}

.video-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(45deg, var(--neutral-900), var(--neutral-800));
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.05) 0%, transparent 50%),
        linear-gradient(to bottom, transparent 60%, var(--neutral-900) 100%);
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-12);
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 1023px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(10, 10, 11, 0.25) 0%,
            rgba(10, 10, 11, 0.45) 50%,
            rgba(10, 10, 11, 0.75) 100%);
    z-index: 3;
    pointer-events: none;
}

.hero-slider-container {
    position: relative;
    height: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1023px) {
    .hero-slider-container {
        height: 400px;
        margin-top: var(--space-8);
    }
}

.showcase-card:hover .hero-product-img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05) !important;
}

.showcase-card:hover .showcase-glow {
    opacity: 0.3 !important;
    transform: scale(1.2);
}

/* Hero Slide Pattern */
.hero-slide-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

/* Hero Slide Brand Watermark */
.hero-slide-brand {
    position: absolute;
    bottom: 20%;
    right: 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    opacity: 0.15;
    color: white;
    pointer-events: none;
}

.hero-slide-brand i {
    font-size: 5rem;
}

.hero-slide-brand span {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    font-family: var(--font-display);
}

/* Hero Refactor */
.hero {
    position: relative;
    padding: 0;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #020617;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: all;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    transition: transform 10s ease-out;
    z-index: 1;
}

.hero-slide.active .hero-slide-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(2, 6, 23, 0.2) 0%,
            rgba(2, 6, 23, 0.5) 50%,
            rgba(2, 6, 23, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--primary-400);
    margin: 0 auto var(--space-6);
}

.hero-title {
    margin-bottom: var(--space-6);
    color: white;
    text-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-title span {
    display: block;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.3));
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--neutral-200);
    /* Light gray for description */
    line-height: var(--leading-relaxed);
    margin: 0 auto var(--space-8);
    max-width: 700px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Improve readability */
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-12);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: white;
    /* Enforce white */
    line-height: var(--leading-none);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-stat-value span {
    color: var(--primary-500);
}

.hero-stat-label {
    font-size: var(--text-sm);
    color: var(--neutral-300);
    /* Light gray */
    margin-top: var(--space-1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Decorative Elements */
/* Removing separate glow z-index as it is handled in background section */
.hero-glow-1 {
    background: var(--primary-500);
    top: -200px;
    right: -200px;
}

.hero-glow-2 {
    background: var(--secondary-500);
    bottom: -200px;
    left: -200px;
}

/* Partners Ticker */
.partners-ticker {
    overflow: hidden;
    padding: var(--space-4) 0;
    position: relative;
}

.partners-grid-ticker {
    display: flex;
    gap: var(--space-16);
    animation: tickerLoop 30s linear infinite;
    width: max-content;
}

.partner-logo-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-tertiary);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    letter-spacing: 0.1em;
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.partner-logo-item:hover {
    filter: grayscale(0);
    opacity: 1;
    color: var(--primary-400);
}

.partner-logo-item i {
    font-size: 1.5rem;
}

@keyframes tickerLoop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Brands Section */
.brands-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.brands-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-10);
    align-items: center;
}

@media (max-width: 1023px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-8);
    }
}

@media (max-width: 639px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background: transparent;
    border: none;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    cursor: pointer;
    aspect-ratio: 16/9;
    overflow: visible;
}

.brand-card:hover {
    transform: translateY(-12px) scale(1.05);
}

.brand-card img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Eliminar fondo blanco */
    mix-blend-mode: multiply;
    /* Brillo sutil alrededor del logo */
    filter:
        brightness(1.05) contrast(1.15) drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)) drop-shadow(0 0 40px rgba(249, 115, 22, 0.15));
    transition: all var(--transition-base);
}

.brand-card:hover img {
    transform: scale(1.08);
    /* Brillo más intenso al hacer hover */
    filter:
        brightness(1.1) contrast(1.2) drop-shadow(0 0 25px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 50px rgba(249, 115, 22, 0.3)) drop-shadow(0 5px 30px rgba(0, 0, 0, 0.1));
}

.brand-card-name {
    display: none;
}

/* Features Section */
.features-section {
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

@media (max-width: 1023px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    padding: var(--space-8);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--border-default);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.05));
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    color: var(--primary-500);
    font-size: var(--text-2xl);
}

.feature-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.feature-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* Products Section */
.products-section {
    background: var(--bg-secondary);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-12);
    flex-wrap: wrap;
    gap: var(--space-6);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.product-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-tertiary) 100%);
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-4);
    transition: transform var(--transition-base);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.product-card-actions {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition-fast);
}

.product-card:hover .product-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card-action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.product-card-action-btn:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
}

.product-card-content {
    padding: var(--space-5);
}

.product-card-brand {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--primary-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.product-card-name {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.product-card-spec {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    padding: var(--space-1) var(--space-2);
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card-price {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.product-card-price-currency {
    font-size: var(--text-sm);
    font-weight: var(--font-normal);
    color: var(--text-tertiary);
}

/* Industries Section */
.industries-section {
    background: var(--bg-primary);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1023px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .industries-grid {
        grid-template-columns: 1fr;
    }
}

.industry-card {
    position: relative;
    padding: var(--space-8);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.industry-card:hover {
    border-color: var(--secondary-500);
    transform: translateY(-4px);
}

.industry-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    font-size: var(--text-3xl);
}

.industry-card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.industry-card-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.industry-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--secondary-400);
    transition: gap var(--transition-fast);
}

.industry-card-link:hover {
    gap: var(--space-3);
}

/* CTA Section */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-12);
    padding: var(--space-16) 0;
}

@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
}

.footer-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social-link:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: var(--text-primary);
}

.footer-column-title {
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-6);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--primary-400);
}

.footer-bottom {
    padding: var(--space-6) 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal-link {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.footer-legal-link:hover {
    color: var(--text-secondary);
}

/* =================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ================================= */

/* Mobile Navigation Enhancements */
@media (max-width: 1023px) {
    .navbar-menu {
        display: none;
    }

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

/* Free up space in the compact mobile navbar so the hamburger button
   (.mobile-menu-btn) is never pushed outside the viewport. Theme toggle,
   account link and search move into the mobile menu / are reachable at
   tablet width and up. */
@media (max-width: 639px) {
    #themeToggle,
    #authLink,
    #searchBtn {
        display: none !important;
    }
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: var(--z-modal);
    transition: all var(--transition-base);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
    opacity: 0;
}

.mobile-menu.active {
    right: 0;
    visibility: visible;
    opacity: 1;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu-links {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.mobile-menu-link {
    padding: var(--space-4);
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: var(--bg-glass);
    color: var(--primary-400);
}

/* Mobile Hero Improvements */
@media (max-width: 639px) {
    .hero {
        min-height: auto;
        padding: 120px 0 var(--space-12);
    }

    .hero-title {
        font-size: var(--text-3xl);
        line-height: 1.2;
    }

    .hero-description {
        font-size: var(--text-base);
    }

    .hero-stats {
        gap: var(--space-4);
    }

    .hero-stat-value {
        font-size: var(--text-2xl);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .heading-1 {
        font-size: var(--text-3xl);
    }

    .heading-2 {
        font-size: var(--text-2xl);
    }

    .section {
        padding: var(--space-12) 0;
    }
}

/* Touch-Friendly Button Sizes */
@media (max-width: 639px) {
    .btn {
        min-height: 48px;
        padding: var(--space-3) var(--space-5);
    }

    .btn-lg {
        min-height: 56px;
    }

    .btn-icon {
        min-width: 48px;
        min-height: 48px;
    }
}

/* Product Cards Mobile */
@media (max-width: 639px) {
    .product-card-actions {
        opacity: 1;
        transform: translateX(0);
    }

    .product-card-content {
        padding: var(--space-4);
    }
}

/* Improved Container Padding on Mobile */
@media (max-width: 639px) {
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
}

/* Mobile Navbar */
@media (max-width: 639px) {
    .navbar {
        padding: var(--space-2) 0;
    }

    .navbar-logo span {
        font-size: var(--text-lg);
    }
}

/* Footer Mobile */
@media (max-width: 639px) {
    .footer-grid {
        gap: var(--space-8);
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* Blog Mobile */
@media (max-width: 639px) {
    .blog-card-title {
        font-size: var(--text-lg);
    }

    .blog-categories {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: var(--space-2);
        margin-bottom: var(--space-8);
    }

    .category-btn {
        flex-shrink: 0;
    }
}

/* Navbar High Contrast Fixes */
.navbar {
    transition: all var(--transition-base);
}

/* Default state (transparent on dark hero) */
.navbar-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.navbar-link:hover {
    color: white !important;
}

.navbar-actions .btn-ghost {
    color: white !important;
}

.navbar-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Scrolled state (white/dark background) */
.navbar.scrolled {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-default);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .navbar-link {
    color: var(--text-secondary) !important;
    text-shadow: none;
}

.navbar.scrolled .navbar-link:hover,
.navbar.scrolled .navbar-link.active {
    color: var(--primary-500) !important;
}

.navbar.scrolled .navbar-actions .btn-ghost {
    color: var(--text-secondary) !important;
}

.navbar.scrolled .navbar-actions .btn-ghost:hover {
    color: var(--text-primary) !important;
    background: var(--bg-tertiary) !important;
}

/* Blog & Utility Enhancements */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 40px auto;
}

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

.col-span-full {
    grid-column: 1 / -1;
}

/* Blog Featured Card Logic Fix */
@media (min-width: 1024px) {
    .blog-featured {
        grid-column: span 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .blog-featured .blog-card-image {
        height: 100%;
    }
}