/* ===================================================
   AU Public Holidays — site.css
   Australian Green & Gold theme
   =================================================== */

:root {
    --au-green:    #003D24;
    --au-green-md: #00693E;
    --au-green-lt: #00843D;
    --au-gold:     #FFCD00;
    --au-gold-lt:  #FFE566;
    --au-dark:     #1C1C1C;
    --au-white:    #FFFFFF;
    --au-bg:       #FAFAF5;
    --au-muted:    #6B7280;
    --au-border:   #E5E7EB;
}

/* Base */
body {
    background-color: var(--au-bg);
    color: var(--au-dark);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--au-green-md); }
a:hover { color: var(--au-green); }

/* ---- Navbar ---- */
.au-navbar {
    background-color: var(--au-green) !important;
    border-bottom: 3px solid var(--au-gold);
}

.au-navbar .navbar-brand {
    color: var(--au-white) !important;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.au-navbar .navbar-brand img {
    filter: brightness(0) invert(1);
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

.au-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
}

.au-navbar .nav-link:hover,
.au-navbar .nav-link:focus {
    color: var(--au-gold) !important;
}

.au-navbar .nav-link.active {
    color: var(--au-gold) !important;
}

.au-navbar .dropdown-menu {
    border: 1px solid var(--au-border);
    border-radius: 6px;
}

.au-navbar .dropdown-item:hover {
    background-color: #f0faf4;
    color: var(--au-green);
}

.au-navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.4);
}

.au-navbar .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* ---- Hero ---- */
.au-hero {
    background: linear-gradient(135deg, var(--au-green) 0%, var(--au-green-md) 100%);
    border-bottom: 4px solid var(--au-gold);
    color: var(--au-white);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

.au-hero-cross {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    color: var(--au-white);
    opacity: 0.10;
    pointer-events: none;
}

.au-hero h1 {
    font-weight: 700;
    font-size: 1.9rem;
    margin-bottom: 0.25rem;
}

.au-hero .au-hero-subtitle {
    color: rgba(255,255,255,0.80);
    font-size: 1rem;
}

.au-hero .au-gold-pill {
    background-color: var(--au-gold);
    color: var(--au-dark);
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ---- Next holiday banner ---- */
.au-next-banner {
    background: linear-gradient(90deg, var(--au-green) 0%, var(--au-green-md) 100%);
    color: var(--au-white);
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.au-next-banner .au-next-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.3rem;
}

.au-next-banner .au-next-days {
    font-size: 2rem;
    font-weight: 800;
    color: var(--au-gold);
    line-height: 1;
}

.au-next-banner .au-next-days-unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--au-gold);
    opacity: 0.8;
    margin-left: 0.15rem;
}

.au-next-banner .au-next-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.au-next-banner .au-next-date {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

/* Faded variant for regional banner */
.au-next-banner-dim {
    opacity: 0.82;
    box-shadow: none;
}

/* Compact variant for side-by-side dual banners */
.au-next-banner-sm { padding: 0.75rem 0.9rem; }
.au-next-banner-sm .au-next-days { font-size: 1.5rem; }
.au-next-banner-sm .au-next-name { font-size: 0.9rem; }

/* ---- State cards (on homepage) ---- */
.au-state-card {
    border: 2px solid var(--au-border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--au-dark);
    display: block;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s, transform 0.1s;
}

.au-state-card:hover {
    border-color: var(--au-green-lt);
    background-color: var(--au-green);
    color: var(--au-white);
    transform: translateY(-2px);
    text-decoration: none;
}

.au-state-card:hover .au-state-pill {
    background-color: var(--au-gold);
    color: var(--au-dark);
}

.au-state-card .au-state-count {
    font-size: 0.8rem;
    color: var(--au-muted);
}

.au-state-card:hover .au-state-count {
    color: rgba(255,255,255,0.7);
}

/* ---- State pill badge ---- */
.au-state-pill {
    display: inline-block;
    background-color: var(--au-gold);
    color: var(--au-dark);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
}

.au-state-pill-sm {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
}

/* ---- Tables ---- */
.au-table {
    border-collapse: collapse;
    width: 100%;
}

.au-table thead th {
    background-color: var(--au-green);
    color: var(--au-white);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.au-table tbody tr:nth-child(even) {
    background-color: #F3FAF6;
}

.au-table tbody tr:hover {
    background-color: #E8F5EE;
}

.au-table td {
    padding: 0.7rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--au-border);
}

.au-table td.au-date-col {
    font-weight: 600;
    white-space: nowrap;
}

.au-table td.au-name-col a {
    color: var(--au-green-md);
    text-decoration: none;
    font-weight: 500;
}

.au-table td.au-name-col a:hover {
    color: var(--au-green);
    text-decoration: underline;
}

.au-observed-note {
    font-size: 0.78rem;
    color: var(--au-muted);
}

.au-note-icon {
    color: var(--au-gold);
    font-weight: 700;
    margin-right: 2px;
}

/* ---- Long weekend cards ---- */
.au-lw-card {
    border-left: 4px solid var(--au-gold);
    border-radius: 0 8px 8px 0;
    background: var(--au-white);
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-bottom: 1rem;
}

.au-lw-card .au-lw-days {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--au-green);
    line-height: 1;
}

.au-lw-card .au-lw-name {
    font-weight: 600;
    font-size: 1rem;
}

.au-lw-card .au-lw-range {
    font-size: 0.85rem;
    color: var(--au-muted);
}

/* ---- Year selector tabs ---- */
.au-year-tabs {
    border-bottom: 2px solid var(--au-border);
    margin-bottom: 1.5rem;
}

.au-year-tabs .au-year-tab {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    color: var(--au-muted);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.au-year-tabs .au-year-tab:hover {
    color: var(--au-green);
    text-decoration: none;
}

.au-year-tabs .au-year-tab.active {
    color: var(--au-green);
    border-bottom-color: var(--au-gold);
}

/* ---- Last viewed state banner ---- */
.au-last-state-banner {
    background-color: #FFF9E0;
    border: 1px solid var(--au-gold);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.au-last-state-banner a {
    color: var(--au-green);
    font-weight: 600;
}

/* ---- Section headings ---- */
.au-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--au-green);
    border-bottom: 2px solid var(--au-gold);
    padding-bottom: 0.4rem;
    margin-bottom: 1.25rem;
}

/* ---- About section ---- */
.au-about-box {
    background: var(--au-white);
    border: 1px solid var(--au-border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

/* ---- ICS subscribe ---- */
.au-ics-box {
    background: #F0FAF4;
    border: 1px solid #B8DEC9;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
}

.au-ics-box .btn-subscribe {
    background-color: var(--au-green);
    color: var(--au-white);
    font-weight: 600;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
}

.au-ics-box .btn-subscribe:hover {
    background-color: var(--au-green-md);
    color: var(--au-white);
}

/* ---- Footer ---- */
.au-footer {
    background-color: var(--au-green);
    color: rgba(255,255,255,0.75);
    border-top: 3px solid var(--au-gold);
    padding: 2rem 0 1.5rem;
    font-size: 0.85rem;
}

.au-footer a {
    color: rgba(255,255,255,0.85);
}

.au-footer a:hover {
    color: var(--au-gold);
    text-decoration: none;
}

.au-footer .au-footer-brand {
    font-weight: 700;
    color: var(--au-white);
    font-size: 1rem;
}

/* ---- Utility ---- */
.au-gold-text  { color: var(--au-gold); }
.au-green-text { color: var(--au-green); }

.au-card {
    background: var(--au-white);
    border: 1px solid var(--au-border);
    border-radius: 8px;
    padding: 1.25rem;
}

/* ---- School holidays placeholder ---- */
.au-school-state-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid var(--au-border);
    border-radius: 6px;
    text-decoration: none;
    color: var(--au-dark);
    background: var(--au-white);
    transition: border-color 0.15s, background 0.15s;
}

.au-school-state-link:hover {
    border-color: var(--au-green-lt);
    background: #f0faf4;
    text-decoration: none;
    color: var(--au-green);
}

/* ---- Responsive ---- */
@media (max-width: 576px) {
    .au-hero h1 { font-size: 1.4rem; }
    .au-hero-cross { width: 120px; height: 120px; opacity: 0.07; }
    .au-next-banner .au-next-days { font-size: 1.6rem; }
    .au-table thead th { font-size: 0.78rem; padding: 0.5rem 0.7rem; }
    .au-table td { padding: 0.5rem 0.7rem; font-size: 0.9rem; }
}
