/* 
 * CSS RESET & BASE STYLES
 */
 :root {
    /* Color Palette */
    --clr-primary: #1a365d;       /* Deep blue - trust/professionalism */
    --clr-primary-light: #2b6cb0; 
    --clr-primary-dark: #0f1c3f;
    --clr-secondary: #38a169;     /* Green - sports/energy/success */
    --clr-secondary-hover: #2f855a;
    --clr-accent: #d69e2e;        /* Gold/amber - achievement */
    --clr-danger: #e53e3e;        /* Red - full/error */
    
    --clr-text: #1a202c;
    --clr-text-muted: #718096;
    --clr-bg-page: #f7fafc;
    --clr-bg-alt: #edf2f7;
    --clr-white: #ffffff;
    
    /* Typography */
    --ff-body: 'Inter', sans-serif;
    --ff-heading: 'Montserrat', sans-serif;
    
    /* Spacing & Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--clr-text);
    background-color: var(--clr-bg-page);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    font-family: var(--ff-heading);
    line-height: 1.2;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--clr-primary-light);
    transition: var(--transition);
}

a:hover {
    color: var(--clr-primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

/* LAYOUT */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.alt-bg {
    background-color: var(--clr-bg-alt);
}

/* HEADER */
.site-header {
    background-color: var(--clr-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.site-title {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.site-subtitle {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.site-nav a {
    font-weight: 600;
    color: var(--clr-text);
}

.site-nav a:hover {
    color: var(--clr-primary);
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background-color: var(--clr-primary);
    color: var(--clr-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--ff-heading);
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--clr-primary-light);
    color: var(--clr-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.btn-primary-outline {
    border: 2px solid var(--clr-primary) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
}

/* HERO SECTION */
.hero {
    height: 80vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--clr-white);
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--clr-accent);
    color: var(--clr-primary-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* SECTION HEADER */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--clr-accent);
    margin: 1rem auto;
    border-radius: 2px;
}

/* INFO CARDS (About) */
.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--clr-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* PROGRAM SECTION */
.program-block {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 2px solid var(--clr-bg-alt);
}

.program-heading {
    text-align: center;
    font-size: 1.75rem;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.program-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-size: 1.125rem;
}

.activity-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--clr-bg-alt);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--clr-secondary);
    transition: var(--transition);
}

.activity-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.activity-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.activity-item p {
    margin: 0;
    line-height: 1.6;
    color: var(--clr-text);
}

.phone-warning {
    max-width: 800px;
    margin: 3rem auto 0;
    background: #fff5f5;
    border: 2px solid var(--clr-danger);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.phone-warning-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.phone-warning p {
    margin: 0;
    font-family: var(--ff-heading);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--clr-danger);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* LEADER SECTION */
.leader-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.leader-image-wrapper {
    flex: 0 0 350px;
    position: relative;
}

.leader-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.leader-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--clr-accent);
    color: var(--clr-primary-dark);
    font-family: var(--ff-heading);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.leader-info h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.leader-title {
    color: var(--clr-secondary);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* CALENDAR (Termini) */
.week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.week-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--clr-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    color: var(--clr-text);
    position: relative;
    border-left: 6px solid var(--clr-secondary);
    transition: var(--transition);
    overflow: hidden;
}

.week-available:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.week-full {
    border-left-color: var(--clr-text-muted);
    background-color: var(--clr-bg-alt);
    opacity: 0.8;
    cursor: not-allowed;
}

.week-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-text-muted);
    letter-spacing: 1px;
}

.week-dates {
    font-size: 1.25rem;
    margin: 0.5rem 0 1.5rem;
    color: var(--clr-primary);
}

.spots-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background-color: #e6ffed;
    color: var(--clr-secondary-hover);
}

.badge-danger {
    background-color: #fff5f5;
    color: var(--clr-danger);
}

.card-action {
    margin-top: 1.5rem;
    border-top: 1px solid var(--clr-bg-alt);
    padding-top: 1rem;
    text-align: right;
    font-weight: 600;
    color: var(--clr-primary-light);
}

/* LOCATION SECTION */
.location-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--clr-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.location-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.location-map {
    margin-top: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-map iframe {
    display: block;
}

/* FORMS (Prijava) */
.form-section {
    flex: 1;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--clr-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    font-weight: 600;
}

.form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.week-summary {
    background: var(--clr-bg-page);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--clr-primary);
    border: 1px solid var(--clr-bg-alt);
}

.fieldset-title {
    font-size: 1.25rem;
    border-bottom: 2px solid var(--clr-bg-alt);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--clr-primary-light);
}

.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--clr-text);
}

.required {
    color: var(--clr-danger);
}

.form-input {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--clr-primary-light);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.w-100 {
    width: 100%;
}

/* CUSTOM CHECKBOX */
.checkbox-group {
    margin: 2rem 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    user-select: none;
    font-weight: 400;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    min-width: 24px;
    height: 24px;
    background-color: var(--clr-white);
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 2px;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--clr-secondary);
    border-color: var(--clr-secondary);
}

.checkmark:after {
    content: "";
    display: none;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* ALERTS & COUNTDOWN */
.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-info {
    background-color: #ebf8ff;
    color: #2b6cb0;
    border-left: 4px solid #3182ce;
}

.alert-danger {
    background-color: #fff5f5;
    color: #c53030;
    border-left: 4px solid #e53e3e;
}

.alert-success {
    background-color: #f0fff4;
    color: #2f855a;
    border-left: 4px solid #38a169;
}

.hidden {
    display: none !important;
}

.countdown-banner {
    background-color: #fffff0;
    border: 1px solid #ecc94b;
    color: #b7791f;
    padding: 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.countdown-banner.warning {
    background-color: #fff5f5;
    border-color: #fc8181;
    color: #c53030;
    animation: pulse 1s infinite;
}

.timer {
    font-size: 1.25rem;
    font-family: monospace;
    font-weight: 700;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* FOOTER */
.site-footer {
    background-color: var(--clr-primary-dark);
    color: var(--clr-text-muted);
    padding: 3rem 0 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-info h3 {
    color: var(--clr-white);
    margin-bottom: 1rem;
}

.footer-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-partner-item {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-partner-logo {
    width: auto;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-partner-item p {
    margin: 0;
    color: #cbd5e0;
    line-height: 1.4;
    font-weight: 500;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: #a0aec0;
}

.footer-contact a:hover {
    color: var(--clr-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .site-nav {
        display: none;
    }
    
    .leader-container {
        flex-direction: column;
        text-align: center;
    }
    
    .leader-image-wrapper {
        flex: 0 0 auto;
        width: 250px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .activity-item {
        padding: 1.25rem 1.5rem;
    }

    .phone-warning {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
    }

    .footer-partner-logo {
        height: 64px;
        max-width: 120px;
    }
}

/* WAITING LIST */
.badge-warning {
    background-color: #fffff0;
    color: #b7791f;
    border: 1px solid #ecc94b;
}

.alert-warning {
    background-color: #fffff0;
    color: #b7791f;
    border-left: 4px solid #ecc94b;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* ===== Banner Page ===== */
.banner-page {
    background: #f0f0f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    font-family: var(--ff-body);
}

.banner-controls {
    text-align: center;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.banner-controls p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

.banner-container {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 3/2;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}

.banner-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5% 4%;
}

.banner-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-logos img {
    height: 70px;
    object-fit: contain;
}

.banner-title {
    color: var(--clr-white);
    font-family: var(--ff-heading);
    font-weight: 800;
    font-size: clamp(2.5rem, 5.5vw, 5rem);
    text-align: center;
    line-height: 1.05;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.banner-free-ribbon {
    background: var(--clr-accent);
    width: calc(100% + 10%);
    margin-left: -5%;
    padding: 0.5rem 2rem;
    text-align: center;
    font-family: var(--ff-heading);
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 4rem);
    letter-spacing: 0.2em;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.banner-details {
    color: var(--clr-white);
    font-size: clamp(1rem, 2vw, 1.8rem);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
}

.banner-signup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.signup-text {
    color: var(--clr-white);
    min-width: 0;
    flex: 1;
}

.signup-label {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 0.2rem;
}

.signup-url {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    font-family: var(--ff-heading);
    color: var(--clr-accent);
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.signup-phone {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.banner-signup img {
    width: 18%;
    aspect-ratio: 1;
    background: white;
    padding: 8px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: contain;
}

.banner-download-btn {
    background-color: var(--clr-secondary);
    color: var(--clr-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--ff-heading);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.banner-download-btn:hover {
    background-color: var(--clr-secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

@page {
    size: landscape;
    margin: 0;
}

@media print {
    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 100%;
    }
    .banner-controls { display: none !important; }
    .banner-page {
        background: none;
        padding: 0;
        margin: 0;
        min-height: auto;
        display: block;
    }
    .banner-container { 
        max-width: none; 
        width: 100vw;
        height: 100vh;
        aspect-ratio: auto;
        border-radius: 0; 
        box-shadow: none;
        break-inside: avoid;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}