/**
 * Giveaway CSS
 */

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-20px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-10px); }
}

@keyframes confettiFall {
    0% {
        top: -20px;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        top: 100vh;
        transform: translateY(0) rotate(720deg);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   Liste des Giveaways
   ============================================ */

.membres-giveaways-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.membres-giveaways-empty {
    text-align: center;
    padding: 80px 20px;
    background: #f9fafb;
    border-radius: 20px;
}

.membres-giveaways-empty .empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.membres-giveaways-empty p {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
}

/* Filtres */
.membres-giveaways-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.membres-giveaways-filters .filter-btn {
    padding: 12px 24px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.membres-giveaways-filters .filter-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.membres-giveaways-filters .filter-btn.active {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Grille */
.membres-giveaways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.membres-giveaways-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}

.membres-giveaways-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Carte Giveaway */
.membres-giveaway-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

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

.giveaway-image {
    position: relative;
    padding-top: 60%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.giveaway-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.giveaway-image .placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.5);
}

.giveaway-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.giveaway-badge.active {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    animation: pulse 2s infinite;
}

.giveaway-badge.ended {
    background: #6b7280;
    color: white;
}

.giveaway-entered-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: #10b981;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

.giveaway-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.giveaway-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.giveaway-title a:hover {
    color: #dc2626;
}

.giveaway-prize {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fef3c7;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 15px;
}

.giveaway-prize i {
    font-size: 20px;
    color: #f59e0b;
}

.giveaway-prize strong {
    color: #92400e;
}

.giveaway-prize .prize-value {
    color: #10b981;
    font-weight: 700;
    margin-left: auto;
}

.giveaway-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.giveaway-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.giveaway-stats .stat i {
    font-size: 16px;
    color: #9ca3af;
}

.giveaway-stats .stat span {
    font-weight: 700;
    color: #1f2937;
}

.giveaway-stats .stat .expired {
    color: #ef4444;
}

.giveaway-progress {
    margin-bottom: 15px;
}

.giveaway-progress .progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.giveaway-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 3px;
    transition: width 0.3s;
}

.giveaway-winner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    margin-bottom: 15px;
}

.giveaway-winner i {
    font-size: 18px;
    color: #f59e0b;
}

.giveaway-winner img {
    border-radius: 50%;
    border: 2px solid white;
}

.giveaway-winner strong {
    color: #92400e;
}

.giveaway-actions {
    margin-top: auto;
}

.btn-giveaway {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-giveaway:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-giveaway:active {
    transform: translateY(0);
}

.btn-giveaway.entered {
    background: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    cursor: default;
}

.btn-giveaway.view {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ============================================
   Single Giveaway
   ============================================ */

.membres-single-giveaway {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.giveaway-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.giveaway-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.giveaway-header-content {
    padding: 50px;
    color: white;
}

.giveaway-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.giveaway-status-badge.status-active {
    background: rgba(220, 38, 38, 0.9);
}

.giveaway-status-badge.status-ended {
    background: rgba(107, 114, 128, 0.9);
}

.giveaway-status-badge.status-paused {
    background: rgba(245, 158, 11, 0.9);
}

.giveaway-title {
    font-size: 42px;
    font-weight: 800;
    margin: 0 0 30px 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.giveaway-prize-display {
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.prize-icon {
    font-size: 60px;
}

.prize-details .prize-label {
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.prize-details .prize-name {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.prize-details .prize-value {
    display: inline-block;
    padding: 6px 16px;
    background: #10b981;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
}

/* Contenu principal */
.giveaway-main-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.giveaway-section {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.giveaway-section h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    margin: 0 0 20px 0;
    color: #1f2937;
}

.giveaway-section h3 i {
    color: #dc2626;
}

.giveaway-description {
    color: #4b5563;
    line-height: 1.8;
    font-size: 16px;
}

.giveaway-rules {
    color: #4b5563;
    line-height: 1.8;
    font-size: 15px;
}

.giveaway-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.giveaway-requirements li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    font-size: 15px;
    transition: all 0.2s;
}

.giveaway-requirements li.met {
    background: #d1fae5;
    color: #065f46;
}

.giveaway-requirements li.not-met {
    background: #fee2e2;
    color: #991b1b;
}

.giveaway-requirements li i {
    font-size: 18px;
}

/* Gagnant */
.giveaway-winner-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 3px solid #f59e0b;
}

.giveaway-winner-display {
    text-align: center;
}

.winner-confetti {
    font-size: 48px;
    margin-bottom: 20px;
}

.giveaway-winner-display img {
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.giveaway-winner-display h4 {
    font-size: 24px;
    margin: 0 0 8px 0;
    color: #92400e;
}

.winner-date {
    color: #92400e;
    font-size: 14px;
    margin: 0;
}

/* Carte de participation */
.giveaway-participation-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    position: sticky;
    top: 20px;
}

/* Compte à rebours */
.giveaway-countdown {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
}

.countdown-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #92400e;
    font-weight: 700;
    margin-bottom: 15px;
}

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

.countdown-item {
    background: white;
    padding: 15px;
    border-radius: 12px;
    min-width: 70px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.countdown-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #dc2626;
    line-height: 1;
}

.countdown-unit {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Stats */
.giveaway-stats-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    border-radius: 12px;
    color: white;
    font-size: 22px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Barre de progression */
.giveaway-progress-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.giveaway-progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 20px 0;
}

/* Bouton de participation */
.btn-giveaway-enter {
    width: 100%;
    padding: 18px 30px;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    margin-bottom: 15px;
}

.btn-giveaway-enter:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}

.btn-giveaway-enter:active:not(:disabled) {
    transform: translateY(0);
}

.btn-giveaway-enter:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-giveaway-enter.entered {
    background: #10b981;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.entry-success-message {
    text-align: center;
    color: #059669;
    font-size: 14px;
    font-weight: 600;
    margin: 15px 0 0 0;
    line-height: 1.6;
}

.entry-cost-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 10px;
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
}

.entry-cost-info i {
    color: #f59e0b;
}

/* Dates */
.giveaway-dates-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
}

.date-item:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.date-item i {
    font-size: 20px;
    color: #dc2626;
}

.date-item strong {
    display: block;
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.date-item span {
    color: #1f2937;
    font-size: 15px;
    font-weight: 600;
}

/* Partage social */
.giveaway-share-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.giveaway-share-card h4 {
    font-size: 16px;
    margin: 0 0 15px 0;
    color: #1f2937;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.facebook {
    background: #4267b2;
}

.share-btn.discord {
    background: #5865f2;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .giveaway-main-content {
        grid-template-columns: 1fr;
    }
    
    .giveaway-participation-card {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .membres-giveaways-grid {
        grid-template-columns: 1fr;
    }
    
    .giveaway-header-content {
        padding: 30px 20px;
    }
    
    .giveaway-title {
        font-size: 28px;
    }
    
    .prize-details .prize-name {
        font-size: 22px;
    }
    
    .giveaway-stats-display {
        grid-template-columns: 1fr;
    }
    
    .countdown-timer {
        gap: 8px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 10px;
    }
    
    .countdown-value {
        font-size: 22px;
    }
}

/* ============================================
   Dark Mode
   ============================================ */

body.dark-mode .membres-giveaway-card,
body.dark-mode .giveaway-section,
body.dark-mode .giveaway-participation-card,
body.dark-mode .giveaway-dates-card,
body.dark-mode .giveaway-share-card {
    background: #1e293b;
    color: #e2e8f0;
}

body.dark-mode .giveaway-title a,
body.dark-mode .giveaway-section h3,
body.dark-mode .stat-value,
body.dark-mode .date-item span {
    color: #e2e8f0;
}

body.dark-mode .giveaway-description,
body.dark-mode .giveaway-rules {
    color: #cbd5e1;
}

body.dark-mode .stat-item {
    background: #0f172a;
}

body.dark-mode .giveaway-progress .progress-bar,
body.dark-mode .giveaway-progress-bar {
    background: #334155;
}
