/* ============================================
   Globalne
   ============================================ */

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

* [hidden] {
    display: none !important;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    line-height: 1.6;
    color: #2d3436;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0);
    z-index: 0;
}

.container {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================================
   Logo + nagłówek
   ============================================ */

.logo-container {
    width: 120px;
    height: 120px;
    background-image: url('../images/logo.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin: -80px auto 20px;
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.4);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    animation: pulse-light 2s infinite;
}

.logo-container:hover {
    transform: scale(1.1) rotate(10deg);
}

h1 {
    color: #27ae60;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #2ecc71;
    border-radius: 3px;
}

/* ============================================
   Instagram
   ============================================ */

.footer-contact {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.footer-contact__link {
    color: #888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
    line-height: 1;
}

.footer-contact__link svg {
    vertical-align: middle;
    flex-shrink: 0;
}

.footer-contact__link:hover {
    color: #27ae60;
}

.footer-contact__sep {
    margin: 0 8px;
    color: #ccc;
}


/* --- Strony statusowe (success, cancel, waitlisted) --- */

.status-page {
    padding: 20px 0;
}

.status-page__icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

.status-page__icon--warning {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    font-weight: 700;
}

.status-page__icon--info {
    background: rgba(52, 152, 219, 0.15);
    color: #2980b9;
}

.status-page h2 {
    color: #27ae60;
    margin-bottom: 15px;
}

.status-page p {
    color: #555;
    margin-bottom: 10px;
}

.status-page__contact {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
}

.status-page__contact a {
    color: #27ae60;
    text-decoration: none;
}

.status-page__contact a:hover {
    text-decoration: underline;
}

.status-page__link {
    display: inline-block;
    margin-top: 20px;
    color: #27ae60;
    text-decoration: none;
    font-weight: 600;
}

.status-page__link:hover {
    text-decoration: underline;
}

/* --- Polityka prywatności --- */

.privacy h2 {
    color: #27ae60;
    margin: 25px 0 10px;
    font-size: 1.1rem;
}

.privacy p {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95rem;
}

.privacy ul {
    margin: 0 0 15px 20px;
    color: #555;
    font-size: 0.95rem;
}

.privacy li {
    margin-bottom: 5px;
}

/* ============================================
   event-list
   ============================================ */

.event-list__loading,
.event-list__empty {
    text-align: center;
    padding: 20px;
    color: #555;
    font-style: italic;
}

.event-list__error {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
}

/* ============================================
   event-card
   ============================================ */

.event-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

.event-card__image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.event-card__content {
    padding: 25px;
}

.event-card__content h2 {
    color: #27ae60;
    margin-bottom: 10px;
}

.event-card__description {
    color: #555;
    margin-bottom: 15px;
}

.event-card__details p {
    margin-bottom: 8px;
    color: #555;
}

.event-card__details strong {
    color: #2d3436;
}

.event-card__details a {
    color: #27ae60;
    text-decoration: none;
}

.event-card__details a:hover {
    text-decoration: underline;
}

.event-card__prices {
    margin: 10px 0;
}

.event-card__prices p {
    margin-bottom: 4px;
}

.event-card__spots {
    font-weight: 700;
    font-size: 1.2rem;
    color: #27ae60;
    margin-top: 15px;
}

.event-card__spots--none {
    color: #e74c3c;
}

.event-card__countdown--small .countdown {
    padding: 10px;
}

.event-card__countdown--small .countdown__label {
    font-size: 0.85rem;
}

.event-card__countdown--small .countdown__value {
    font-size: 1.1rem;
}

.event-card__countdown--small .countdown__unit {
    font-size: 0.65rem;
}

.event-card__countdown--small .countdown__box {
    padding: 5px 8px;
    min-width: 45px;
}

.event-card__countdown--small .countdown__calendar-btn {
    font-size: 0.75rem;
    padding: 4px 10px;
}

.event-card__cta {
    display: inline-block;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
    animation: heartbeat 2s ease-in-out infinite;
}

.event-card__cta:hover {
    animation: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.6);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.08); }
    30% { transform: scale(1); }
    45% { transform: scale(1.05); }
    60% { transform: scale(1); }
}

.event-card__free-info {
    font-size: 0.9rem;
    color: #27ae60;
    font-style: italic;
    margin-top: 4px;
}

.event-card__limit-info {
    font-size: 0.85rem;
    color: #e67e22;
    font-weight: 500;
    margin-top: 8px;
}

.event-card__countdown {
    margin: 15px 0;
}

/* --- Countdown wspólne --- */

.countdown {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
}

.countdown__date-info {
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.countdown__label {
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.countdown__boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.countdown__box {
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    min-width: 60px;
}

.countdown__value {
    font-size: 1.5rem;
    font-weight: 700;
}

.countdown__unit {
    font-size: 0.75rem;
    color: #888;
}

.countdown__calendar-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* --- Wariant: odliczanie do zapisów --- */

.countdown--registration {
    background: rgba(52, 152, 219, 0.08);
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.countdown--registration .countdown__date-info {
    color: #2980b9;
}

.countdown--registration .countdown__label {
    color: #2980b9;
}

.countdown--registration .countdown__box {
    background: rgba(52, 152, 219, 0.12);
}

.countdown--registration .countdown__value {
    color: #2980b9;
}

.countdown--registration .countdown__calendar-btn {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.countdown--registration .countdown__calendar-btn:hover {
    background: #2980b9;
    color: white;
}

/* --- Wariant: odliczanie do zajęć --- */

.countdown--event {
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.countdown--event .countdown__label {
    color: #27ae60;
}

.countdown--event .countdown__box {
    background: rgba(46, 204, 113, 0.12);
}

.countdown--event .countdown__value {
    color: #27ae60;
}

.countdown--event .countdown__calendar-btn {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.countdown--event .countdown__calendar-btn:hover {
    background: #27ae60;
    color: white;
}

/* ============================================
   registration-form
   ============================================ */

.reg-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.reg-modal {
    background: white;
    border-radius: 15px;
    padding: 35px;
    max-width: 650px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.reg-modal h2 {
    color: #27ae60;
    margin-bottom: 20px;
}

.reg-close {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
}

.reg-close:hover { color: #333; }

.reg-modal label {
    display: block;
    margin-bottom: 15px;
    color: #555;
    font-size: 0.9rem;
}

.reg-modal input[type="text"],
.reg-modal input[type="email"],
.reg-modal input[type="tel"],
.reg-modal input[type="number"] {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 5px;
    box-sizing: border-box;
}

.reg-modal input[type="text"]:focus,
.reg-modal input[type="email"]:focus,
.reg-modal input[type="tel"]:focus,
.reg-modal input[type="number"]:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

.reg-field-hint {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

.reg-children {
    margin-bottom: 15px;
}

.reg-children > label > input[type="number"] {
    width: 80px;
}

.reg-children__ages {
    margin-top: 10px;
}

.reg-ages-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.reg-age-input {
    flex: 1;
    min-width: 80px;
}

.reg-age-input input[type="number"] {
    width: 100%;
}

.reg-price-info {
    background: rgba(46, 204, 113, 0.1);
    padding: 12px;
    border-radius: 8px;
    color: #27ae60;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.reg-terms {
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.reg-terms h3 {
    color: #27ae60;
    margin-bottom: 12px;
    font-size: 1rem;
}

.reg-terms p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 8px;
}

.reg-consents {
    margin-bottom: 20px;
}

.reg-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.reg-consent input[type="checkbox"] {
    margin-top: 2px;
    margin-right: 4px;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    accent-color: #27ae60;
}

.reg-consent a {
    color: #27ae60;
}

.reg-required-legend {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
}

.reg-cta {
    display: block;
    width: 100%;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.reg-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.6);
}

.reg-cta:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.reg-error {
    margin-top: 10px;
    color: #e74c3c;
    text-align: center;
    font-size: 0.9rem;
}

/* ============================================
   Animacje
   ============================================ */

@keyframes pulse-light {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulse-strong {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    body {
        padding: 30px 15px;
    }

    .container {
        padding: 30px 20px;
    }

    .logo-container {
        width: 100px;
        height: 100px;
        margin-top: -60px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .reg-modal {
        padding: 20px;
    }

    .countdown__boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}
