/**
 * Saint-Martin Website - Main Styles
 * 
 * Colors:
 * - Primary Blue: #5DADE2
 * - Light Gray: #C0C0C0
 * - Dark Gray: #333333
 * - Pink (pig): #E89B9B
 * - White: #FFFFFF
 * - Success Green: #27AE60
 * - Warning Orange: #F39C12
 * - Danger Red: #E74C3C
 */

/* ============================================
   RESET & BASE
   ============================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: #5DADE2;
    transition: color 0.3s ease;
}

a:hover {
    color: #3498DB;
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 60px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    color: #5DADE2;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #5DADE2;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: #E8F6FB;
}

.nav-links a.active {
    background: #5DADE2;
    color: white;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #5DADE2;
    cursor: pointer;
}

/* ============================================
   CONTAINERS & LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: #5DADE2;
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ============================================
   VIDEO SECTION
   ============================================ */

.video-section {
    background: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%);
    padding: 4rem 0;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================================
   EVENT CARDS
   ============================================ */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

/* ============================================
   EVENTS SECTION - Modern Design v2.5.3
   ============================================ */

/* Add Google Fonts import at top of file if not present */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&family=Open+Sans:wght@300;400;600;700&display=swap');

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Event Card */
.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(93, 173, 226, 0.15);
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 20px;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.badge-urgent {
    background: rgba(231, 76, 60, 0.95);
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4); 
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 6px 16px rgba(231, 76, 60, 0.6); 
    }
}

.badge-closed {
    background: rgba(102, 102, 102, 0.95);
    color: white;
}

.badge-full {
    background: rgba(149, 165, 166, 0.95);
    color: white;
}

/* Card Header */
.event-card-header,
.card-header {
    padding: 1.5rem 1.5rem 1rem;
    position: relative;
}

.event-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.event-card-header h3,
.card-header h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.event-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Dates Section */
.dates-section {
    padding: 0 1.5rem 1rem;
    flex-grow: 1;
}

.dates-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dates-header svg {
    width: 14px;
    height: 14px;
    stroke: #5DADE2;
}

.dates-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.date-item.available {
    border-left-color: #27AE60;
}

.date-item.available:hover {
    background: #f0f8fc;
    border-left-color: #5DADE2;
    transform: translateX(4px);
}

.date-item.warning {
    border-left-color: #F39C12;
    background: #fff8f0;
}

.date-item.full {
    border-left-color: #e0e0e0;
    opacity: 0.6;
}

.date-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.date-day {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.date-time {
    font-size: 0.8rem;
    color: #666;
}

.availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-green {
    background: #27AE60;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.5);
    animation: pulse-dot 2s infinite;
}

.dot-orange {
    background: #F39C12;
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.5);
}

.dot-red {
    background: #E74C3C;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 8px rgba(39, 174, 96, 0.5); }
    50% { box-shadow: 0 0 16px rgba(39, 174, 96, 0.8); }
}

.places-count {
    color: #666;
}

/* Status Block - for closed/full events */
.status-block {
    padding: 2rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #e0e0e0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.status-title {
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.status-message {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.status-date {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(93, 173, 226, 0.1);
    border-radius: 8px;
    font-weight: 600;
    color: #3498DB;
    margin-top: 0.75rem;
}

.status-stats {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(93, 173, 226, 0.1);
    border-radius: 20px;
    font-weight: 600;
    color: #3498DB;
    margin-top: 0.75rem;
}

.status-stats svg {
    width: 18px;
    height: 18px;
}

.status-hint {
    font-size: 0.85rem;
    color: #5DADE2;
    margin-top: 0.75rem;
}

/* Card Footer */
.card-footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    background: white;
}

.price-info {
    margin-bottom: 1rem;
}

.price-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.4rem;
}

.price-amount {
    font-family: 'Merriweather', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #3498DB;
    line-height: 1;
}

.price-currency {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
}

.price-details {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #5DADE2 0%, #3498DB 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(93, 173, 226, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(93, 173, 226, 0.4);
}

.btn-primary:disabled,
.btn-disabled {
    background: #C0C0C0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-full {
    width: 100%;
}

/* Countdown timer */
.countdown-timer {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(93, 173, 226, 0.1);
    border-radius: 8px;
    font-weight: 600;
    color: #3498DB;
    margin-top: 0.75rem;
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .event-card {
        border-radius: 10px;
    }
    
    .event-card-header,
    .card-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }
    
    .event-card-header h3,
    .card-header h3 {
        font-size: 1.35rem;
    }
    
    .event-icon {
        font-size: 2.25rem;
    }
    
    .event-description {
        font-size: 0.9rem;
    }
    
    .dates-section {
        padding: 0 1.25rem 1rem;
    }
    
    .dates-header {
        font-size: 0.7rem;
    }
    
    .date-item {
        padding: 0.8rem 0.9rem;
    }
    
    .date-day {
        font-size: 0.9rem;
    }
    
    .date-time {
        font-size: 0.75rem;
    }
    
    .availability {
        font-size: 0.8rem;
    }
    
    .card-footer {
        padding: 1.25rem;
    }
    
    .price-amount {
        font-size: 1.75rem;
    }
    
    .price-details {
        font-size: 0.75rem;
    }
    
    .status-badge {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.65rem;
        padding: 0.35rem 0.7rem;
    }
    
    .status-block {
        padding: 1.5rem 1.25rem;
    }
    
    .status-icon {
        font-size: 2.5rem;
    }
    
    .status-title {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .events-grid {
        gap: 1.25rem;
    }
    
    .event-card {
        border-radius: 8px;
    }
    
    .event-card-header,
    .card-header {
        padding: 1rem 1rem 0.5rem;
    }
    
    .event-card-header h3,
    .card-header h3 {
        font-size: 1.2rem;
    }
    
    .event-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .event-description {
        font-size: 0.85rem;
    }
    
    .dates-section {
        padding: 0 1rem 0.75rem;
    }
    
    .date-item {
        padding: 0.7rem 0.8rem;
        border-radius: 6px;
    }
    
    .date-day {
        font-size: 0.85rem;
    }
    
    .card-footer {
        padding: 1rem;
    }
    
    .price-amount {
        font-size: 1.5rem;
    }
    
    .price-currency {
        font-size: 0.9rem;
    }
}

/* Progress bar */
.progress-container {
    margin: 1.5rem 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.progress-bar-bg {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #27AE60 0%, #2ECC71 100%);
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.progress-bar-fill.warning {
    background: linear-gradient(90deg, #F39C12 0%, #F1C40F 100%);
}

.progress-bar-fill.danger {
    background: linear-gradient(90deg, #E74C3C 0%, #EC7063 100%);
}

/* Countdown */
.countdown-container {
    text-align: center;
    padding: 1.5rem;
    background: #E8F6FB;
    border-radius: 8px;
    margin: 1rem 0;
}

.countdown-timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: #5DADE2;
    margin-top: 0.5rem;
}

/* Event status */
.event-status {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
}

.status-available {
    background: #D5F4E6;
    color: #27AE60;
}

.status-warning {
    background: #FCF3CF;
    color: #F39C12;
}

.status-full {
    background: #FADBD8;
    color: #E74C3C;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: #5DADE2;
    color: white;
}

.btn-primary:hover {
    background: #3498DB;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(93, 173, 226, 0.4);
}

.btn-primary:disabled {
    background: #C0C0C0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-full {
    width: 100%;
}

/* ============================================
   INFO SECTION
   ============================================ */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-box h3 {
    color: #5DADE2;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-box p {
    color: #666;
    line-height: 1.8;
}

/* ============================================
   MENU SECTION
   ============================================ */

.menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.menu-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-card h3 {
    color: #5DADE2;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.menu-card ul {
    list-style: none;
}

.menu-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.menu-card li:last-child {
    border-bottom: none;
}

/* ============================================
   REVIEWS/TESTIMONIALS
   ============================================ */

.reviews-container {
    max-width: 1000px;
    margin: 0 auto;
}

.reviews-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
}

.review-card {
    flex: 0 0 300px;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    scroll-snap-align: center;
}

.review-stars {
    color: #F39C12;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-content {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.review-author {
    color: #333;
    font-weight: 600;
    text-align: right;
}

/* ============================================
   SPONSORS
   ============================================ */

.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
    margin-top: 2rem;
}

.sponsor-logo {
    max-width: 150px;
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: grayscale(100%);
}

.sponsor-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #5DADE2;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #C0C0C0;
    line-height: 1.8;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #C0C0C0;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-slider {
        flex-direction: column;
    }
    
    .review-card {
        flex: 0 0 auto;
        width: 100%;
    }
}
