/* BASE & VARIABLES */
:root {
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-rgb: 37, 99, 235;

    --ot-color: #d97706;
    --dt-color: #dc2626;
    --reg-color: #059669;

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* BACKGROUND SHAPES */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #3b82f6;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #B22234;
    bottom: 100px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* HERO SECTION */
.hero-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1rem 1rem;
}

.hero-compact h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent), #B22234);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.reset-button {
    background: rgba(239, 68, 68, 0.1);
    color: var(--dt-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.reset-button:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

/* CALCULATOR SECTION */
.calc-section {
    padding: 2rem 1rem 5rem;
    display: flex;
    justify-content: center;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.state-badge {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

input[type="number"],
select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.2);
}

/* TOGGLES & INFO */
.hidden {
    display: none !important;
}

.toggle-group {
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.info-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--ot-color);
    padding: 1rem;
    border-radius: 0 12px 12px 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.info-note svg {
    width: 20px;
    height: 20px;
    color: var(--ot-color);
    flex-shrink: 0;
}

/* HOURS GRID */
.hours-container h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 2.5rem;
}

.day-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.day-input label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.day-input input {
    width: 100%;
    text-align: center;
    padding: 0.75rem 0.5rem;
}

/* RESULTS PANEL */
.results-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-box {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.3s;
}

.result-box:hover {
    transform: translateY(-5px);
}

.box-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-box h3 {
    font-size: 1.75rem;
}

.result-box p {
    font-size: 1rem;
    opacity: 0.8;
}

.reg-box {
    border-top: 3px solid var(--reg-color);
}

.reg-box h3 {
    color: var(--reg-color);
}

.ot-box {
    border-top: 3px solid var(--ot-color);
}

.ot-box h3 {
    color: var(--ot-color);
}

.dt-box {
    border-top: 3px solid var(--dt-color);
}

.dt-box h3 {
    color: var(--dt-color);
}

/* TOTAL BAR */
.total-bar {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.total-value {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
}

/* SECTIONS (ABOUT & STATES) */
.about-section,
.states-section {
    padding: 5rem 1rem;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.about-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* STATES GRID */
.state-search {
    margin-bottom: 2rem;
    text-align: center;
}

.state-search input {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.8);
}

.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.state-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--glass-border);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-primary);
}

.state-card:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-3px);
}

.state-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.state-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* FOOTER */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--glass-border);
    padding: 3rem 1rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-brand span {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* RESPONSIVE DESIGN (MOBILE FIRST APPROACH IN CSS BUT ADJUSTMENTS FOR SMALL SCREENS HERE) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .hours-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .results-panel {
        grid-template-columns: 1fr;
    }

    .total-bar {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

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

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* COOKIE CONSENT */
.cookie-consent-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-overlay.show {
    transform: translateY(0);
}

.cookie-consent-box {
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-consent-box h3 {
    width: 100%;
    margin-bottom: -1rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.cookie-consent-box p {
    flex: 1 1 500px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    white-space: nowrap;
}

.btn-cookie-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cookie-primary:hover {
    background: var(--accent-hover);
}

.btn-cookie-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cookie-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}