/* ============================================
   MAIN STYLESHEET — inlined to eliminate @import waterfall
   Page-specific CSS is loaded separately:
     - components/wizard.css   → wizard_header.php
     - components/ticket.css   → wizard_header.php
     - components/page-cms.css → header.php ($extraCss on page.php)
     - components/countdown.css  → header.php ($extraCss on home.php)
     - components/home-prices.css → header.php ($extraCss on home.php)
   ============================================ */

/* ============================================
   CSS VARIABLES - COLORS & TYPOGRAPHY
   ============================================ */
:root {
    /* Colors */
    --color-white: #fff;
    --color-black: #000;
    --color-dark-text: #222;
    --color-light-text: rgba(255, 255, 255, 0.85);
    --color-muted: #ccc;
    --color-border-light: rgba(255, 255, 255, 0.18);
    --color-border-lighter: rgba(255, 255, 255, 0.2);
    --color-shadow-dark: rgba(0, 0, 0, 0.5);
    --color-shadow-light: rgba(0, 0, 0, 0.15);
    --color-shadow-medium: rgba(0, 0, 0, 0.2);
    --color-shadow-blue: rgba(31, 38, 135, 0.37);
    --color-glass: rgba(255, 255, 255, 0.15);

    /* Button Colors */
    --btn-green: #22c55e;
    --btn-blue: #3b82f6;
    --btn-yellow: #ffcc33;
    --btn-orange: #ff8c00;
    --btn-pink: #ffb347;
    --btn-pink-gradient: linear-gradient(135deg, #cc0066 0%, #ff0099 100%);

    /* Typography */
    --font-chewy: 'Chewy', cursive, sans-serif;
    --font-sans: Arial, Helvetica, sans-serif;
    --font-weight-normal: 400;
    --font-weight-bold: bold;

    /* Assets */
    --hero-bg: image-set(
        url('/assets/winkie/DJI_20250818_092103_9.webp') type('image/webp'),
        url('/assets/winkie/DJI_20250818_092103_9.jpg')  type('image/jpeg')
    );

    /* Green palette extensions */
    --green-dark: #166534;
    --green-tint: rgba(34, 197, 94, .1);
}

/* ============================================
   RESET & HTML/BODY STYLES
   ============================================ */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

html {
    height: 100%;
    scrollbar-gutter: stable;
    overflow-x: hidden;
    background-color: #212529;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    position: relative;
    background: transparent;
}

body::after {
    content: '';
    position: absolute;
    top: -100vh;
    left: 0;
    right: 0;
    height: 100vh;
    background-color: #3788d7;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-color: #3788d7;
    z-index: -2;
}

/* Full-screen hero background image — placed as <img> in HTML so the
   browser preload scanner discovers it before CSS is even parsed. */
.hero-bg-img {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
    pointer-events: none;
}

body.modal-open {
    padding-right: 0 !important;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: .5rem 1rem;
    background: #fff;
    color: #000;
    font-weight: bold;
    z-index: 9999;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

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

a {
    text-decoration: none;
    color: inherit;
}

a:focus,
a:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.page-content a {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.page-content a:focus,
.page-content a:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
}

.page-content img {
    max-width: 100%;
    height: auto;
}

/* ── Max-width container utilities ── */
.mw-460 { max-width: 460px; width: 100%; }
.mw-700 { max-width: 700px; }
.mw-560 { max-width: 560px; }
.mw-580 { max-width: 580px; }
.mw-600 { max-width: 600px; }
.mw-860 { max-width: 860px; }
.mw-900 { max-width: 900px; }
.mw-1000 { max-width: 1000px; }

/* ── Flex overflow fix ── */
.flex-fill-overflow { flex: 1; min-width: 0; }

/* ── Colour utility ── */
.text-winkie-green { color: var(--btn-green) !important; }

/* ── Sub-text utilities (sizes below Bootstrap's .small) ── */
/* font-weight: 800 (Bootstrap stops at fw-bold = 700) */
.fw-800 { font-weight: 800 !important; }

.cursor-pointer { cursor: pointer; }

.text-sub    { font-size: .85rem; color: #6c757d; }
.text-sm     { font-size: .82rem !important; }
.text-xs     { font-size: .78rem !important; }
.text-2xs    { font-size: .73rem !important; }
.text-3xs    { font-size: .68rem !important; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.navbar-brand,
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    font-family: var(--font-chewy);
    font-weight: var(--font-weight-normal);
    font-style: normal;
}

h1,
h2,
h3,
h4 {
    margin-top: 2rem;
}

/* ============================================
   ANIMATIONS & KEYFRAMES
   ============================================ */
@keyframes slideUp {
    from {
        transform: translateY(120%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rollNumber {
    0% {
        transform: translateY(-300%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   LAYOUT - HERO SECTION
   ============================================ */
.hero-header {
    min-height: 100vh;
    height: auto;
    position: relative;
}

.hero-header .hero-content {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    color: var(--color-white);
    text-shadow: 0 2px 8px var(--color-shadow-dark);
    text-align: center;
    z-index: 2;
    padding-top: 90px;
}

.hero-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.hero-header .hero-content h1 {
    font-size: calc(2rem + 5vw);
}

.hero-content p {
    font-size: calc(2rem + 1.5vw);
    margin-bottom: 2rem;
}

/* Short hero for non-home pages (overrides the default 100vh) */
.hero-header--page {
    min-height: 180px;
}

/* Centred hero content (ticket status pages) */
.hero-header .hero-content.hero-content--centered {
    justify-content: center;
}

/* Compact hero content area (CMS pages, volunteer views) */
.hero-header .hero-content.hero-content--compact {
    min-height: 100px;
}

@media (max-width: 915px),
(max-height: 850px) {
    .hero-content {
        padding-top: 18vh;
        justify-content: start !important;
    }

    #countdown {
        margin-bottom: 2rem;
    }
}

/* ============================================
   LAYOUT - NAVBAR
   ============================================ */
.winkie-navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    z-index: 1000;
    color: white;
}

.winkie-navbar.solid {
    background-color: var(--color-white) !important;
    transform-origin: top center;
    transition: background-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease;
    color: var(--color-black);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav a,
nav .logo-name {
    justify-content: left;
    align-items: center;
    margin: 0;
    margin-left: 10px !important;
}

.logo-name {
    font-family: var(--font-chewy);
    font-size: 1.4rem;
    font-weight: 400;
}

.logo {
    width: 275px;
    height: 50px;
    margin: 20px;
    position: relative;
}

.top-menu {
    position: absolute;
    top: 0;
    left: 300px;
    height: 90px;
    width: 600px;
    gap: 1.5rem;
    font-weight: bold;
    font-size: 10pt;
    text-transform: uppercase;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    justify-content: center;
}

.top-menu.hidden {
    opacity: 0;
    visibility: hidden;
}

.winkie-menu-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 10px;
    background-color: var(--color-white);
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    padding: 5px 10px;
    color: var(--color-black);
}

.winkie-menu-panel {
    position: relative;
    max-width: 1000px;
    display: none;
    color: transparent;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.winkie-menu-panel.is-open {
    display: block;
    opacity: 1;
    max-height: 600px;
    color: var(--color-black);
    transition: all 0.5s ease;
}

/* Constrain nav to site content width */
.winkie-navbar nav.container {
    max-width: 1000px;
}

/* Logo image height */
.logo img {
    height: 50px;
    width: auto;
    display: block;
    max-height: 50px;
}

/* Inactive nav link */
.nav-link-inactive {
    opacity: .7;
}

@media (max-width: 1000px) {
    .top-menu {
        display: none !important;
    }
}

/* ============================================
   LAYOUT - FOOTER
   ============================================ */
.footer-contact-details {
    font-size: 12pt;
}

.footer-contact-details small {
    font-size: 10pt;
    color: var(--color-muted);
}

.footer-contact-details ul,
.container .row .col-md-6 ul.list-unstyled {
    list-style: none;
}

.container .row .col-md-6 ul.list-unstyled>li>a {
    font-weight: bold;
}

.sitemap {
    margin-top: 3rem;
}

.sitemap-list>ul>li {
    font-weight: bold;
    font-size: 10pt;
}

.sitemap-list>ul>li ul li {
    font-weight: normal;
}

.sitemap-list ul {
    list-style: none;
    padding: 0.25rem;
}

.sitemap-list ul li {
    margin-bottom: 0.25rem;
}

/* Sitemap links inherit page color */
.sitemap-list a {
    color: inherit;
    text-decoration: none;
}

/* Constrain footer content to site width */
footer .container {
    max-width: 1000px;
}

/* Logo in footer */
.footer-logo {
    height: 70px;
    width: auto;
    margin-right: 15px;
}

/* Foundation name heading */
.footer-title {
    font-family: var(--font-chewy);
    font-weight: 400;
    margin-bottom: 0;
    margin-top: 10px;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ============================================
   COMPONENTS - BUTTONS
   ============================================ */
.btn {
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
    color: var(--color-black);
    background-color: var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    text-shadow: inherit;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.2);
    color: var(--color-light-text);
    text-decoration: none;
}

.btn:focus-visible,
.btn-text:focus-visible,
.winkie-menu-toggle:focus-visible {
    outline: 3px solid var(--btn-blue, #3788d7);
    outline-offset: 2px;
}

.btn i,
.btn img {
    margin-right: 10px;
}

.btn-phone,
.btn-phone:hover {
    color: var(--color-white);
    background-color: var(--btn-green);
}

.btn-mail,
.btn-mail:hover {
    color: var(--color-white);
    background-color: var(--btn-blue);
}

.btn-donate,
.btn-donate:hover {
    background-color: var(--btn-yellow);
    color: var(--color-black);
}

.btn-donate:hover,
.btn-ticket-sale:hover {
    color: var(--color-black);
}

.btn-collecte:hover {
    color: var(--color-white);
}

.btn-ideal,
.btn-ideal:hover {
    color: var(--color-white);
    font-size: 14pt;
    background: var(--btn-pink-gradient);
    padding: 0.9rem;
    border-radius: 0.4rem;
    gap: 0.5em;
}

.btn-ideal img {
    height: 1.8em;
}

.quick-amounts {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.quick-amounts .btn {
    flex: 1;
    min-width: 60px;
    border: 2px solid #e0e0e0;
    box-shadow: none;
    border-radius: 0;
    color: var(--color-dark-text);
}

.quick-amounts .btn:hover,
.quick-amounts .btn.active {
    border-color: var(--btn-pink);
    background: #fff8f0;
    color: var(--btn-orange);
}

/* Explicit white background for ticket-sale button */
.btn-ticket-sale,
.btn-ticket-sale:hover {
    background-color: var(--color-white);
    color: var(--color-black);
}

.btn-collecte,
.btn-collecte:hover {
    background-color: var(--btn-orange);
    color: var(--color-white);
}

/* Large primary action — wizard next, pay, confirm */
.btn-lg {
    border-radius: 100px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    gap: .5rem;
}

/* Small inline action — card headers, row actions */
.btn-sm {
    font-size: .78rem;
    padding: 4px 12px;
    gap: .4rem;
}

.btn-sm:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Ghost button — translucent, works on coloured and white backgrounds */
.btn-ghost,
.btn-ghost:hover {
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: none !important;
    transform: none !important;
}

.btn-ghost {
    background: rgba(255, 255, 255, .65);
    color: #555;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .88) !important;
    color: #333 !important;
}

/* Text-only button — no background, no border (back links, logout) */
.btn-text {
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    opacity: .7;
    cursor: pointer;
    font-family: inherit;
    font-size: .8rem;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
}

.btn-text:hover {
    opacity: 1;
    color: inherit;
    text-decoration: none;
}

/* ============================================
   COMPONENTS - PROMO CARDS
   ============================================ */
.cards-grid {
    max-width: 1000px;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    z-index: 20;
}

.promo-card {
    background: var(--color-glass);
    box-shadow: 0 8px 32px 0 var(--color-shadow-blue);
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 2rem 1.2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border-light);
    animation: slideUp 0.7s cubic-bezier(.23, 1.01, .32, 1) 0.2s both;
    box-sizing: border-box;
    z-index: 20;
    width: 370px;
    position: relative;
}

.cards-grid h3 {
    font-family: var(--font-chewy);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cards-grid p {
    font-family: var(--font-sans);
}

.promo-card p {
    color: var(--color-light-text);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-shadow: 0 1px 3px var(--color-shadow-light);
}

.fundraiser-dates {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: transparent;
    color: var(--color-white);
    border-radius: 0.8rem;
    text-align: center;
    font-weight: bold;
    box-shadow: none;
    border: 1px solid var(--color-border-lighter);
    font-family: var(--font-sans);
    font-size: 1.6rem;
    text-shadow: 0 1px 3px var(--color-shadow-light);
}

.fundraiser-date-value {
    padding: 1rem;
}

.more-info {
    margin-top: 10px;
    margin-bottom: 0;
}

@media (max-width: 915px) {
    .cards-grid {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .promo-card {
        border-radius: 20px;
        width: auto;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ============================================
   COMPONENTS - MODAL
   ============================================ */
.modal-header {
    background: linear-gradient(135deg, var(--btn-pink) 0%, var(--btn-yellow) 100%);
    border-radius: 1.2rem 1.2rem 0 0;
    display: flex;
    align-items: center;
    padding: 20px;
}

/* ============================================
   COMPONENTS - STATUS ICONS & BADGES
   ============================================ */

/* Shared base for all circular icon containers */
.status-icon-circle,
.card-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Circular icon container used on status/result pages */
.status-icon-circle {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
}

/* Icon inside ticket status cards (2rem) */
.status-icon {
    font-size: 2rem;
}

/* Larger icon inside donation / volunteer result cards (30px) */
.status-icon-lg {
    font-size: 30px;
}

/* Site-wide alert bar (header & wizard header) */
.site-alert {
    padding: 15px;
    text-align: center;
    font-weight: 500;
}

/* ============================================
   COMPONENTS - DONATION CARD
   Used in partials/donation.php (modal & page mode)
   and volunteer_signup/closed.php
   ============================================ */

/* Full-screen hero wrapper for standalone pages (volunteer closed, donation page) */
.fullscreen-hero-wrap {
    min-height: 100vh;
    width: 100%;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
}

/* Centred flex wrapper inside hero (donation page mode) */
.donation-page-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
}

/* White rounded card */
.donation-card {
    width: 100%;
    max-width: 520px;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
    background: rgba(255, 255, 255, 0.98);
}

/* Header row inside donation card */
.donation-card-header-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Body padding */
.donation-card-body {
    padding: 20px;
}

/* Result section padding (after payment) */
.donation-result {
    padding: 6px 0 2px;
}

/* Result description text */
.donation-result-text {
    font-size: 1.05rem;
    line-height: 1.5;
}
