/* Glace Atelier - Fun & Chic Design v2 */

:root {
    --turquoise: #2EC4B6;
    --turquoise-dark: #1A9E93;
    --coral: #FF6B6B;
    --coral-light: #FF8E8E;
    --golden: #FFD93D;
    --golden-dark: #F5C800;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --text: #2D3047;
    --text-light: #6B7280;
    --shadow: rgba(45, 48, 71, 0.1);
    --shadow-colored: rgba(46, 196, 182, 0.25);
    --gradient-fun: linear-gradient(135deg, #2EC4B6 0%, #FF6B6B 100%);
    --gradient-golden: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
    --confetti-1: #FF6B6B;
    --confetti-2: #2EC4B6;
    --confetti-3: #FFD93D;
    --confetti-4: #A855F7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Heebo', 'Poppins', -apple-system, sans-serif;
    background: var(--cream);
    min-height: 100vh;
    color: var(--text);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Confetti Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, var(--confetti-1) 2px, transparent 2px),
        radial-gradient(circle at 90% 10%, var(--confetti-2) 3px, transparent 3px),
        radial-gradient(circle at 30% 80%, var(--confetti-3) 2px, transparent 2px),
        radial-gradient(circle at 70% 60%, var(--confetti-4) 2px, transparent 2px),
        radial-gradient(circle at 50% 40%, var(--confetti-1) 1px, transparent 1px),
        radial-gradient(circle at 20% 50%, var(--confetti-2) 2px, transparent 2px),
        radial-gradient(circle at 80% 90%, var(--confetti-3) 3px, transparent 3px);
    background-size: 100% 100%;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

/* RTL Support */
[dir="rtl"] { font-family: 'Heebo', sans-serif; }
[dir="ltr"] { font-family: 'Poppins', sans-serif; }

/* Language Selector */
.lang-selector {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 1000;
    background: var(--white);
    padding: 5px;
    border-radius: 30px;
    box-shadow: 0 4px 20px var(--shadow);
}

.lang-btn {
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
    color: var(--text);
}

.lang-btn:hover {
    background: var(--golden);
    transform: scale(1.05);
}

.lang-btn.active {
    background: var(--gradient-fun);
    color: var(--white);
    box-shadow: 0 4px 15px var(--shadow-colored);
}

/* Container */
.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 75px 16px 40px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 30px 20px;
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 10px 40px var(--shadow);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--golden) 10%, transparent 20%);
    animation: sparkle 8s linear infinite;
    opacity: 0.1;
}

@keyframes sparkle {
    100% { transform: rotate(360deg); }
}

.logo-container {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
}

.logo-img {
    width: 140px;
    height: auto;
    animation: bounce 2s ease-in-out infinite;
    filter: drop-shadow(0 8px 15px rgba(46, 196, 182, 0.3));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

.title {
    font-family: 'Heebo', sans-serif; font-weight: 800;
    font-size: 26px;
    background: var(--gradient-fun);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 12px 0 8px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 14px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

/* Hero Gallery */
.hero-gallery {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 10px 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.hero-gallery::-webkit-scrollbar { display: none; }

.hero-img {
    flex: 0 0 82%;
    height: 240px;
    object-fit: cover;
    border-radius: 24px;
    scroll-snap-align: center;
    box-shadow: 0 12px 35px var(--shadow);
    transition: transform 0.3s ease;
    border: 4px solid var(--white);
}

.hero-img:hover {
    transform: scale(1.02) rotate(1deg);
}

/* Current Date */
.current-date {
    text-align: center;
    background: var(--white);
    padding: 14px 24px;
    border-radius: 50px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px var(--shadow);
    border-left: 4px solid var(--turquoise);
    border-right: 4px solid var(--coral);
}

/* Details Section */
.details-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.detail-card {
    background: var(--white);
    padding: 18px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 6px 25px var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 3px solid var(--turquoise);
}

.detail-card:nth-child(2) { border-bottom-color: var(--coral); }
.detail-card:nth-child(3) { border-bottom-color: var(--golden); }

.detail-card:hover {
    transform: translateY(-5px) rotate(-1deg);
    box-shadow: 0 12px 35px var(--shadow-colored);
}

.detail-card.location {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--turquoise) 0%, var(--turquoise-dark) 100%);
    color: var(--white);
    border-bottom: none;
}

.detail-card.location .detail-text { color: var(--white); }

.detail-icon { font-size: 28px; flex-shrink: 0; }
.detail-text { font-size: 14px; font-weight: 600; }

/* Section Title */
.section-title {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::before,
.section-title::after {
    content: '🍦';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.section-title::before { left: 15%; }
.section-title::after { right: 15%; }

/* Info Box */
.info-section { margin-bottom: 20px; }

.info-box {
    background: var(--white);
    padding: 25px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 6px 25px var(--shadow);
    border-top: 4px solid var(--golden);
}

.info-box p { margin-bottom: 12px; font-size: 16px; font-weight: 500; }
.info-box .note {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 0;
    padding-top: 12px;
    border-top: 2px dashed var(--golden);
}

/* Activities */
.activities {
    background: var(--white);
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 6px 25px var(--shadow);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 12px;
    margin-bottom: 8px;
    background: var(--cream);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--golden);
    transform: translateX(8px);
}

[dir="rtl"] .activity-item:hover { transform: translateX(-8px); }

.activity-item:last-child { margin-bottom: 0; }
.activity-item span:first-child { font-size: 32px; }

/* Pricing Section */
.pricing-section { margin-bottom: 20px; }

.places-box, .price-box {
    background: var(--white);
    padding: 25px;
    border-radius: 24px;
    margin-bottom: 12px;
    box-shadow: 0 6px 25px var(--shadow);
    text-align: center;
}

.places-box h3 {
    color: var(--turquoise-dark);
    margin-bottom: 15px;
    font-size: 18px;
}

.places-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 500;
}

.places-icon { font-size: 30px; }

.remaining-places {
    background: var(--gradient-fun);
    color: var(--white);
    padding: 18px 32px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    box-shadow: 0 8px 25px var(--shadow-colored);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.remaining-number { font-size: 36px; font-weight: 900; }

.price-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.price-icon { font-size: 36px; }

.price-value {
    font-size: 42px;
    font-weight: 900;
    background: var(--gradient-golden);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-discount {
    background: var(--golden);
    padding: 14px 20px;
    border-radius: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

.payment-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
}

/* Calendar */
.calendar-section { margin-bottom: 20px; }

.calendar-container {
    background: var(--white);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 6px 25px var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-month {
    font-weight: 800;
    font-size: 18px;
    color: var(--turquoise-dark);
}

.calendar-nav {
    background: var(--turquoise);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-colored);
}

.calendar-nav:hover {
    background: var(--coral);
    transform: scale(1.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--turquoise);
    padding: 8px;
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    cursor: default;
    transition: all 0.3s ease;
}

.calendar-day.empty { background: transparent; }
.calendar-day.past { color: #D1D5DB; }

.calendar-day.friday {
    background: var(--golden);
    cursor: pointer;
    font-weight: 800;
    color: var(--text);
    box-shadow: 0 3px 10px rgba(255, 217, 61, 0.4);
}

.calendar-day.friday:hover {
    background: var(--coral);
    color: var(--white);
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.calendar-day.friday.selected {
    background: var(--gradient-fun);
    color: var(--white);
    box-shadow: 0 6px 20px var(--shadow-colored);
    animation: selected-pulse 1s ease-in-out infinite;
}

@keyframes selected-pulse {
    0%, 100% { box-shadow: 0 6px 20px var(--shadow-colored); }
    50% { box-shadow: 0 8px 30px var(--shadow-colored); }
}

.calendar-day.friday.full {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
    text-decoration: line-through;
    box-shadow: none;
}

.selected-date-info {
    margin-top: 18px;
    padding: 18px;
    background: var(--golden);
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
}

#spotsInfo { margin-top: 8px; font-weight: 800; font-size: 16px; }
#spotsInfo.available { color: #059669; }
#spotsInfo.limited { color: #D97706; }
#spotsInfo.full { color: #DC2626; }

/* Form */
.form-section { margin-bottom: 20px; }

.registration-form {
    background: var(--white);
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 6px 25px var(--shadow);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text);
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 16px 18px;
    border: 3px solid #E5E7EB;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--turquoise);
    box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.2);
}

/* Price Calculator */
.price-calculator {
    background: linear-gradient(135deg, var(--cream) 0%, #FFF0E0 100%);
    padding: 22px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 2px dashed var(--golden);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
}

.discount-row { color: #059669; font-weight: 700; }

.total-row {
    border-top: 3px solid var(--coral);
    padding-top: 14px;
    margin-top: 10px;
    font-weight: 800;
}

.total-price {
    font-size: 28px;
    color: var(--coral);
}

/* Time Note */
.time-note {
    background: var(--golden);
    padding: 14px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 20px;
    background: var(--gradient-fun);
    color: var(--white);
    border: none;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-shadow: 0 8px 30px var(--shadow-colored);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-colored);
}

.submit-btn:active { transform: translateY(-2px); }

.submit-btn:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Sold Out */
.sold-out-message {
    background: var(--white);
    padding: 45px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 6px 25px var(--shadow);
}

.sold-out-icon { font-size: 80px; display: block; margin-bottom: 20px; }
.sold-out-message h3 { color: var(--coral); margin-bottom: 12px; font-size: 20px; }

/* Success Message */
.success-message {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.success-content {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
}

@keyframes popIn {
    0% { transform: scale(0.5) rotate(-5deg); opacity: 0; }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

.success-icon { font-size: 100px; display: block; margin-bottom: 15px; }

.success-content h2 {
    background: var(--gradient-fun);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-size: 24px;
}

.success-details {
    background: var(--cream);
    padding: 20px;
    border-radius: 16px;
    margin: 20px 0;
    text-align: start;
    border-left: 4px solid var(--turquoise);
}

[dir="rtl"] .success-details {
    border-left: none;
    border-right: 4px solid var(--turquoise);
}

.success-details p { margin: 10px 0; font-size: 15px; }

.reminder {
    font-weight: 800;
    color: var(--coral);
    margin-bottom: 20px;
    font-size: 16px;
}

.new-registration-btn {
    padding: 16px 35px;
    background: var(--gradient-golden);
    color: var(--text);
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.new-registration-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 217, 61, 0.5);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-light);
    font-size: 14px;
}

.footer p { margin: 6px 0; }

.footer a {
    color: var(--turquoise-dark);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer a:hover { color: var(--coral); }

/* Responsive */
@media (max-width: 400px) {
    .title { font-size: 22px; }
    .logo-img { width: 120px; }
    .details-section { grid-template-columns: 1fr; }
    .detail-card.location { grid-column: span 1; }
    .lang-btn { padding: 8px 12px; font-size: 11px; }
    .price-value { font-size: 36px; }
    .registration-form { padding: 20px; }
    .section-title::before, .section-title::after { display: none; }
}

/* Form validation */
.form-group.error input,
.form-group.error select {
    border-color: var(--coral);
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

html { scroll-behavior: smooth; }

::selection {
    background: var(--turquoise);
    color: var(--white);
}

/* Waze Button */
.waze-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #33ccff 0%, #00aaff 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(51, 204, 255, 0.3);
}

.waze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 204, 255, 0.4);
    background: linear-gradient(135deg, #00aaff 0%, #0088cc 100%);
}

.detail-card.location {
    flex-direction: column;
    text-align: center;
}

/* Gallery Navigation - Desktop Only */
.gallery-wrapper {
    position: relative;
}

.gallery-nav {
    display: none;
}

/* Desktop only - show arrows */
@media (min-width: 769px) {
    .gallery-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        background: var(--white);
        border: none;
        border-radius: 50%;
        cursor: pointer;
        font-size: 28px;
        color: var(--turquoise-dark);
        box-shadow: 0 4px 20px var(--shadow);
        transition: all 0.3s ease;
        z-index: 10;
    }

    .gallery-nav:hover {
        background: var(--turquoise);
        color: var(--white);
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 25px var(--shadow-colored);
    }

    .gallery-prev {
        left: -25px;
    }

    .gallery-next {
        right: -25px;
    }

    /* RTL support */
    [dir="rtl"] .gallery-prev {
        left: auto;
        right: -25px;
    }

    [dir="rtl"] .gallery-next {
        right: auto;
        left: -25px;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxIn 0.3s ease;
}

@keyframes lightboxIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3001;
}

.lightbox-close:hover {
    background: var(--coral);
    color: var(--white);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    color: var(--turquoise-dark);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: var(--turquoise);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Make gallery images clickable */
.hero-img {
    cursor: pointer;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 26px;
    }
}
