/* ============================================
   GIVEAWAYS PAGE STYLES
   ============================================ */

/* Banner */
.giveaway-banner {
    background: linear-gradient(135deg, rgba(15,18,41,0.92), rgba(26,31,61,0.85)),
                url('../images/hero-worship.png') center/cover no-repeat;
    padding: 200px 0 100px; text-align: left; position: relative; overflow: hidden;
}
.giveaway-banner-content { max-width: 700px; position: relative; z-index: 2; }
.giveaway-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--orange), #f5a623);
    color: #fff; padding: 8px 20px; border-radius: 30px;
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; margin-bottom: 24px;
    animation: pulse-glow 2s infinite;
}
.giveaway-banner h1 { color: #fff; font-size: 3.5rem; margin-bottom: 20px; line-height: 1.1; }
.text-gradient {
    background: linear-gradient(135deg, var(--orange), #f5a623, #ffcc00);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.giveaway-banner p { color: rgba(255,255,255,0.75); font-size: 1.1rem; line-height: 1.8; margin-bottom: 30px; }
.banner-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.banner-stat {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
    padding: 14px 22px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.1);
}
.banner-stat i { font-size: 1.3rem; color: var(--orange); }
.banner-stat .stat-val { display: block; font-size: 1.4rem; font-weight: 800; color: #fff; }
.banner-stat .stat-lbl { font-size: 0.72rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.banner-particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(232,113,42,0.4); }
    50% { box-shadow: 0 0 40px rgba(232,113,42,0.7); }
}

.banner-buttons { display: flex; gap: 16px; margin-bottom: 40px; }

/* Project Essence */
.project-essence-section { background: #fff; position: relative; }
.essence-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.essence-content h2 { margin-bottom: 24px; }
.essence-content p { color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }
.essence-features { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 30px 0; }
.essence-feature { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; color: var(--navy); }
.essence-feature i { color: #10b981; }

.project-card {
    position: relative; border-radius: 24px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.project-card img { width: 100%; display: block; }
.project-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 30px; background: linear-gradient(to top, rgba(15,18,41,0.95), transparent);
}
.project-stats { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 20px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); }
.p-stat { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.p-val { font-size: 1.8rem; font-weight: 800; color: var(--orange); }
.p-lbl { font-size: 0.8rem; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.p-progress { height: 6px; background: rgba(255,255,255,0.2); border-radius: 10px; overflow: hidden; }
.p-bar { height: 100%; background: var(--orange); border-radius: 10px; }

/* How It Works */
.how-it-works-section { background: var(--off-white); }
.steps-grid { display: flex; align-items: center; justify-content: center; gap: 0; }
.step-card {
    background: #fff; padding: 40px 30px; border-radius: 16px;
    text-align: center; flex: 1; max-width: 300px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease; position: relative;
}
.step-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.step-number {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--navy); color: #fff; font-size: 0.75rem; font-weight: 800;
    width: 32px; height: 32px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; letter-spacing: 0;
}
.step-icon {
    width: 70px; height: 70px; margin: 10px auto 20px;
    background: linear-gradient(135deg, var(--orange), #f5a623);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
}
.step-card h3 { font-family: 'Inter', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }
.step-connector { font-size: 1.2rem; color: var(--orange); padding: 0 10px; }

/* Giveaway Grid & Cards */
.giveaways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.giveaway-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.giveaway-card:hover { 
    box-shadow: 0 20px 60px rgba(0,0,0,0.12); 
    transform: translateY(-8px); 
}

.giveaway-card-image { 
    position: relative; 
    height: 240px; 
    overflow: hidden; 
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giveaway-card-image img { 
    max-width: 100%; 
    max-height: 100%; 
    width: auto;
    height: auto;
    object-fit: contain; 
    transition: transform 0.6s ease; 
}

.giveaway-card:hover .giveaway-card-image img { 
    transform: scale(1.1); 
}

.prize-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    padding: 15px; 
    z-index: 2; 
}

.prize-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, var(--orange), #f5a623);
    color: #fff; padding: 6px 14px; border-radius: 30px;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}

.countdown-wrapper {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; gap: 0; background: rgba(15,18,41,0.8);
    backdrop-filter: blur(8px); padding: 12px 10px; z-index: 2;
}

.countdown-item { flex: 1; text-align: center; }
.countdown-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.1); }
.cd-val { display: block; font-size: 1.2rem; font-weight: 800; color: var(--orange); font-family: 'Inter', sans-serif; }
.cd-lbl { font-size: 0.6rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.5px; }

.giveaway-card-body { 
    padding: 25px; 
    display: flex; 
    flex-direction: column; 
    flex: 1;
}

.giveaway-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.giveaway-status {
    display: inline-flex; align-items: center; gap: 6px;
    color: #10b981; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
}

.giveaway-status i { font-size: 0.5rem; animation: blink 1.5s infinite; }
.giveaway-date { font-size: 0.75rem; color: var(--text-light); }

.giveaway-card-body h2 { 
    font-size: 1.4rem; 
    margin-bottom: 8px; 
    color: var(--navy);
    line-height: 1.3;
}

.prize-name { font-size: 0.95rem; color: var(--orange); margin-bottom: 10px; font-weight: 600; }
.giveaway-desc { 
    font-size: 0.88rem; 
    color: var(--text-light); 
    line-height: 1.6; 
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Progress Bar */
.ticket-progress { margin-top: auto; margin-bottom: 20px; }
.progress-info { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-light); margin-bottom: 6px; }
.progress-bar { height: 6px; background: var(--gray-100); border-radius: 10px; overflow: hidden; }
.progress-fill {
    height: 100%; border-radius: 10px;
    background: linear-gradient(90deg, var(--orange), #f5a623);
    transition: width 1s ease;
}

/* Price Box */
.ticket-price-box {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--off-white); padding: 15px 18px; border-radius: 16px;
    gap: 12px;
}

.price-amount { font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.btn-glow { animation: btn-glow 2.5s infinite; }
@keyframes btn-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(232,113,42,0.35); }
    50% { box-shadow: 0 4px 30px rgba(232,113,42,0.6); }
}
.btn-full { width: 100%; justify-content: center; }

/* Empty State */
.empty-state {
    text-align: center; padding: 80px 20px;
    background: var(--off-white); border-radius: 20px;
}
.empty-state i { font-size: 3rem; color: var(--gray-300); margin-bottom: 20px; }
.empty-state h3 { font-family: 'Inter', sans-serif; font-weight: 700; margin-bottom: 10px; }
.empty-state p { color: var(--text-light); }

/* Game Modal */
.game-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10000; display: none; align-items: center; justify-content: center;
}
.game-modal.active { display: flex; }
.game-modal-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15,18,41,0.85); backdrop-filter: blur(8px);
}
.game-modal-content {
    position: relative; z-index: 2; background: #fff;
    border-radius: 24px; padding: 40px; max-width: 520px; width: 95%;
    max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    animation: modalIn 0.4s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close {
    position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
    border-radius: 50%; border: none; background: var(--gray-100);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; color: var(--gray-500); transition: all 0.3s;
}
.modal-close:hover { background: #fee2e2; color: #dc2626; }

/* Game Steps */
.game-step { display: none; }
.game-step.active { display: block; }
.step-header { text-align: center; margin-bottom: 30px; }
.step-badge {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), #f5a623);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 1.3rem; color: #fff;
}
.step-badge.pulse { animation: pulse-glow 2s infinite; }
.step-header h2 { font-family: 'Inter', sans-serif; font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.step-header p { color: var(--text-light); font-size: 0.92rem; }
.auth-prompt-options { display: flex; flex-direction: column; gap: 12px; }
.auth-divider { text-align: center; position: relative; margin: 15px 0; }
.auth-divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--gray-200); }
.auth-divider span { position: relative; z-index: 1; background: #fff; padding: 0 10px; color: var(--gray-400); font-size: 0.75rem; font-weight: 700; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border: 2px solid var(--gray-100); border-radius: 12px; text-decoration: none; color: var(--navy); font-weight: 600; transition: all 0.3s; }
.btn-google:hover { background: var(--gray-50); border-color: var(--gray-200); }
.btn-google img { width: 18px; }
.ticket-confirm {
    display: inline-flex; align-items: center; gap: 8px;
    background: #d1fae5; color: #059669; padding: 8px 20px;
    border-radius: 30px; font-size: 0.85rem; font-weight: 600; margin-top: 12px;
}

/* Form Styles */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: 0.82rem; font-weight: 600;
    color: var(--gray-700); margin-bottom: 6px;
}
.form-group label i { color: var(--orange); margin-right: 4px; }
.form-group input {
    width: 100%; padding: 14px 16px; border: 2px solid var(--gray-200);
    border-radius: 12px; font-size: 0.95rem; font-family: 'Inter', sans-serif;
    outline: none; transition: all 0.3s;
}
.form-group input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232,113,42,0.1); }
.ticket-qty-selector {
    display: flex; align-items: center; gap: 0;
    border: 2px solid var(--gray-200); border-radius: 12px; overflow: hidden;
}
.qty-btn {
    width: 48px; height: 48px; border: none; background: var(--gray-50);
    cursor: pointer; font-size: 0.9rem; color: var(--navy); transition: all 0.2s;
}
.qty-btn:hover { background: var(--orange); color: #fff; }
.ticket-qty-selector input {
    width: 60px; text-align: center; border: none; border-radius: 0;
    font-size: 1.2rem; font-weight: 700; padding: 12px 0;
}
.total-display {
    text-align: right; margin-top: 10px; font-size: 1rem;
    color: var(--navy);
}
.total-display strong { font-size: 1.2rem; color: var(--orange); }
.form-note {
    text-align: center; font-size: 0.78rem; color: var(--text-light); margin-top: 16px;
}
.form-note i { color: #10b981; }



/* Result */
.result-animation { text-align: center; }
.result-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 2rem; color: #fff;
    animation: bounce-in 0.5s ease;
}
@keyframes bounce-in {
    0% { transform: scale(0); } 50% { transform: scale(1.2); } 100% { transform: scale(1); }
}
.result-animation h2 { font-family: 'Inter', sans-serif; font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.result-animation > p { color: var(--text-light); margin-bottom: 20px; }
.result-prize {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 14px 28px; border-radius: 30px;
    font-size: 1.1rem; font-weight: 700; color: #92400e; margin-bottom: 24px;
}
.result-note {
    background: var(--off-white); padding: 16px 20px; border-radius: 12px;
    margin-bottom: 24px; font-size: 0.88rem; color: var(--text-light); line-height: 1.7;
}
.result-note i { color: var(--orange); }

/* Confetti */
.confetti-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.confetti-piece {
    position: absolute; width: 10px; height: 10px; top: -10px;
    animation: confetti-fall 3s ease-in-out forwards;
}
@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(600px) rotate(720deg); opacity: 0; }
}

/* Winners */
.winners-section { background: var(--navy-dark); }
.winners-section .section-label, .winners-section .section-title { color: #fff; }
.winners-section .section-label { color: var(--orange-light); }
.winners-section .section-subtitle { color: rgba(255,255,255,0.6); }
.winners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.winner-card {
    background: rgba(255,255,255,0.05); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
    padding: 30px 20px; text-align: center; transition: all 0.3s;
}
.winner-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.winner-avatar {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), #f5a623);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; font-size: 1.3rem; color: #fff;
}
.winner-card h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: 1rem; margin-bottom: 6px; }
.winner-prize { font-size: 0.82rem; color: var(--orange); font-weight: 600; margin-bottom: 4px; }
.winner-giveaway { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.winner-date { font-size: 0.72rem; color: rgba(255,255,255,0.3); }

/* FAQ */
.faq-section { background: var(--off-white); }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    background: #fff; border-radius: 14px; margin-bottom: 12px;
    overflow: hidden; border: 1px solid var(--gray-100); transition: all 0.3s;
}
.faq-item:hover { border-color: rgba(232,113,42,0.2); }
.faq-toggle {
    width: 100%; padding: 20px 24px; border: none; background: none;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-family: 'Inter', sans-serif; font-size: 0.95rem;
    font-weight: 600; color: var(--navy); text-align: left;
}
.faq-toggle i { color: var(--orange); transition: transform 0.3s; }
.faq-item.active .faq-toggle i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer p { padding: 0 24px 20px; font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* Responsive */
@media (max-width: 1024px) {
    .giveaways-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}
@media (max-width: 768px) {
    .giveaway-banner h1 { font-size: 2.4rem; }
    .giveaways-grid { grid-template-columns: 1fr; }
    .giveaway-card-image { height: 200px; }
    .game-modal-content { padding: 24px; }
    .wheel-container { width: 280px; height: 280px; }
    #spinWheel { width: 280px; height: 280px; }
    .ticket-price-box { flex-direction: column; text-align: center; }
}
