﻿/* CSS Variables */
:root {
    --primary: #4338CA; /* Deep Indigo - Passes AA contrast on white */
    --primary-hover: #3730A3;
    --secondary: #059669; /* Deep Emerald */
    --text-main: #111827; /* Dark Gray */
    --text-light: #4B5563; /* Medium Gray - Passes AA contrast 7:1 on white */
    --bg-main: #F9FAFB;
    --bg-white: #FFFFFF;
    --ad-bg: #E5E7EB;
    --focus-color: #D97706; /* Amber for high-visibility keyboard focus */
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

main {
    min-height: 200px;
    margin-bottom: 20px;
}

/* Accessibility: Skip Link & Focus States */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background-color: var(--text-main);
    color: var(--bg-white);
    padding: 10px 15px;
    z-index: 1000;
    border-radius: 4px;
    transition: top 0.2s ease;
}

    .skip-link:focus {
        top: 20px;
        outline: 3px solid var(--focus-color);
    }

:focus-visible {
    outline: 3px solid var(--focus-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.section {
    padding: 5rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary);
    color: #FFFFFF;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
    }

/* Header */
header {
    background-color: var(--bg-white);
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .logo span {
        color: var(--text-main);
    }

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

    .nav-links a {
        font-weight: 600;
        color: var(--text-light);
        padding: 0.5rem;
    }

        .nav-links a:hover {
            color: var(--primary);
        }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #F3F4F6 0%, #FFFFFF 100%);
    padding: 6rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    padding-right: 2rem;
}

.hero-image {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    border: 1px solid #E5E7EB;
}

/* Ad Placeholders */
.ad-space {
    background-color: var(--ad-bg);
    border: 2px dashed #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.875rem;
    margin: 2rem auto;
    border-radius: 8px;
}

.ad-leaderboard {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.ad-rectangle {
    width: 300px;
    height: 250px;
}

/* How it Works / Features */
.bg-white {
    background-color: var(--bg-white);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}


    .card:hover {
        /*transform: translateY(-5px);*/
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Feature & Ad Combo Layout */
.feature-ad-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* SEO Content Section */
.seo-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

    .seo-content h3 {
        margin-top: 2.5rem;
    }

/* Footer */
footer {
    background-color: #111827;
    color: #D1D5DB;
    padding: 3rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

    .footer-links a {
        color: #D1D5DB;
        padding: 0.5rem;
    }

        .footer-links a:hover {
            color: #FFFFFF;
            text-decoration: underline;
        }

/* Responsive Design */
@media (max-width: 850px) {
    .hero-grid, .feature-ad-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

        .hero-content .btn {
            display: block;
            width: 100%;
        }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .ad-leaderboard {
        height: auto;
        padding: 20px;
    }
}



/* Subtle shadow for all admin cards */
.admin-card {
    border: none;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}
/* Shared Premium Breadcrumb Styling */
.breadcrumb-card {
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #edf2f7;
}

.drilldown-breadcrumb {
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    height: 35px;
}

    .drilldown-breadcrumb:hover {
        background-color: #f1f5f9;
        color: #003082 !important;
    }

.breadcrumb-separator {
    color: #cbd5e1;
    margin: 0 0.25rem;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-separator {
    color: #cbd5e1;
    margin: 0 0.25rem;
    font-size: 0.9rem;
}


/* Control Panel Grid Styling */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    background-color: transparent !important;
}

.setting-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

    /* Hover Effects */
    .setting-card:hover {
        border-color: #003082;
        box-shadow: 0 10px 25px -5px rgba(0, 48, 130, 0.1), 0 8px 10px -6px rgba(0, 48, 130, 0.1);
        transform: translateY(-3px);
    }

        .setting-card:hover .chevron-icon {
            transform: translateX(4px);
            color: #003082 !important;
        }

/* Icon Container */
.setting-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.chevron-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}









.spinneroverlay {
    position: fixed; /* Stay in place */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.85); /* Black background with opacity */
    z-index: 999999999; /* Sit on top */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    flex-direction: column; /* Stack children vertically */
}

.spinner {
    box-sizing: border-box;
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%; /* Make it round */
    width: 50px; /* Spinner size */
    height: 50px; /* Spinner size */
    animation: spin 1s linear infinite; /* Spin animation */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loadingMessage {
    margin-top: 10px; /* Space between spinner and message */
    color: white; /* Message color */
    font-size: 18px; /* Message font size */
    line-height: 1.5;
    word-spacing: 0.16em;
    letter-spacing: 0.12em;
}

nav {
    margin: 0 auto !important;
}