:root {
    --primary: #064e3b;      /* Deep golf green */
    --primary-light: #10b981;
    --accent: #fbbf24;       /* Gold */
    --accent-hover: #f59e0b;
    --text-dark: #0f172a;
    --text-body: #475569;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --error: #ef4444;
    --success: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 100px 20px;
    background-image: url('https://offertabs.s3.amazonaws.com/offer/3bcszy/site/media/6a1ef73092b433.13160255.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 78, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: var(--white);
}

.hero-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.5);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Countdown */
#countdown {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: var(--accent);
}

.countdown-timer {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.time-block {
    display: flex;
    align-items: baseline;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
}

.time-block small {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
    margin-left: 2px;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.gallery-header p {
    color: var(--text-body);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.gallery-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 10px 15px -3px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1), 0 20px 25px -5px rgba(0,0,0,0.1);
}

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
    cursor: pointer;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
}

.gallery-card:hover .card-image::after {
    background: rgba(0,0,0,0.1);
}

.card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-end;
}

/* Vote Button Wrapper */
.vote-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    gap: 12px;
    flex-wrap: wrap;
}

.card-caption {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    flex: 1 1 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    min-width: 100px;
}

.vote-action-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-vote {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-vote svg {
    width: 18px;
    height: 18px;
}

.btn-vote:hover:not(:disabled) {
    background: var(--primary-light);
    transform: scale(1.02);
}

.btn-vote:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-vote.voted {
    background: var(--bg-light);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.vote-count {
    font-weight: 600;
    color: var(--text-body);
    font-size: 0.9rem;
}

/* Buttons */
.load-more-container {
    text-align: center;
}

.btn {
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.1);
}

/* Status Message */
.status-message {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 16px;
    font-size: 1.2rem;
    color: var(--text-body);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--text-dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 20;
}

.lightbox-close:hover {
    background: rgba(0,0,0,0.8);
}

.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    min-height: 200px;
    overflow: hidden;
    position: relative;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    pointer-events: none; /* Prevents image drag conflict with swiping */
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.8);
}

.lightbox-nav.prev {
    left: 16px;
}

.lightbox-nav.next {
    right: 16px;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
}

.lightbox-footer {
    padding: 20px 24px;
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.lightbox-caption {
    color: var(--text-body);
    font-size: 1rem;
}

/* Toasts */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--white);
    color: var(--text-dark);
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    animation: toast-in 0.3s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.error { border-left: 4px solid var(--error); }
.toast.success { border-left: 4px solid var(--success); }

@keyframes toast-in {
    to { transform: translateX(0); }
}

/* Powered By */
#wbx-powered-by-slot {
    margin-top: auto;
    padding-top: 40px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .lightbox-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .lightbox-action {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    .lightbox-nav.prev {
        left: 8px;
    }
    .lightbox-nav.next {
        right: 8px;
    }
}
