:root {
    --bg-dark: #1a1008;
    --bg-card: #2a1a10;
    --text-main: #f5ebd9;
    --text-muted: #b89d89;
    --accent-primary: #ff5722;
    --accent-secondary: #ffb300;
    --error: #ef4444;
    --success: #10b981;
    --border: rgba(255, 183, 0, 0.15);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    background-image: linear-gradient(rgba(26, 16, 8, 0.88), rgba(26, 16, 8, 0.95)), url('https://offertabs.s3.amazonaws.com/offer/j5qup7/site/media/6ae516e6f137d1.21719875.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 60px 20px 80px;
    display: flex;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-poster {
    max-width: 100%;
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7);
    border: 2px solid rgba(255, 183, 0, 0.15);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 183, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-secondary);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #e5d1c2;
    max-width: 600px;
    margin: 0 auto;
}

.contest-info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 32px 0;
    width: 100%;
    text-align: left;
}

.info-card {
    background: rgba(42, 26, 16, 0.85);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--accent-secondary);
    border-bottom: 1px solid rgba(255, 183, 0, 0.15);
    padding-bottom: 10px;
    font-family: var(--font-heading);
}

.info-card ul {
    list-style-type: none;
    margin-bottom: 12px;
}

.info-card li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    position: relative;
    padding-left: 18px;
    color: var(--text-main);
}

.info-card li strong {
    color: #fff;
}

.info-card li::before {
    content: "•";
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    top: -2px;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.countdown {
    margin-top: 32px;
    font-size: 1.25rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* Layout */
.main-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.card {
    background: rgba(42, 26, 16, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-muted);
}

/* Form Styles */
.form-card {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #e5d1c2;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 183, 0, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px rgba(255, 183, 0, 0.15);
}

/* File Upload custom style */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-display {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 183, 0, 0.3);
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.file-upload-wrapper:hover .file-upload-display {
    border-color: var(--accent-secondary);
    background: rgba(255, 183, 0, 0.05);
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #1a1008;
    width: 100%;
    padding: 16px;
    font-size: 1.125rem;
    box-shadow: 0 10px 20px -5px rgba(255, 87, 34, 0.4);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(255, 87, 34, 0.6);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #f5ebd9;
    padding: 12px 24px;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Messages */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.status-message {
    text-align: center;
    padding: 60px 20px;
    background: rgba(42, 26, 16, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.status-message h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

/* Success Card */
.success-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.share-panel {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.share-panel h3 {
    margin-bottom: 12px;
}

.share-panel p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.share-controls {
    display: flex;
    gap: 12px;
}

.share-controls input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 16px;
    color: var(--text-main);
}

/* Gallery Layout */
.gallery-section {
    padding-top: 20px;
}

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

.gallery-header h2 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.gallery-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    background: rgba(42, 26, 16, 0.85);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 183, 0, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.gallery-img-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.gallery-img-container img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img-container img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.gallery-text h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-vote {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    font-family: inherit;
}

.btn-vote:hover:not(:disabled) {
    background: rgba(255, 87, 34, 0.15);
    border-color: rgba(255, 87, 34, 0.4);
    color: #ff5722;
}

.btn-vote.voted,
.btn-vote:disabled {
    background: rgba(255, 87, 34, 0.2);
    border-color: rgba(255, 87, 34, 0.5);
    color: #ff5722;
}

.btn-vote.voted .heart-icon {
    fill: #ff5722;
    color: #ff5722;
}

.gallery-footer {
    margin-top: 40px;
    text-align: center;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-close {
    position: absolute;
    top: 24px; right: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-content {
    position: relative;
    z-index: 10000;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(90vh - 80px);
    object-fit: contain;
    background: #000;
}

.lightbox-info {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
}

.lightbox-info h3 {
    margin-bottom: 4px;
}

.lightbox-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    border-top-color: #1a1008;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .hero-text {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero { padding: 40px 20px; }
    .hero-title { font-size: 2.2rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .card { padding: 24px; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .lightbox-info { flex-direction: column; align-items: flex-start; gap: 16px; }
}
