/* Main container styles */
.giveaway-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.giveaway-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    z-index: -1;
}

/* Header styles */
.giveaway-header {
    text-align: center;
    margin-bottom: 30px;
}

.giveaway-header h2 {
    color: #2c3e50;
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(90deg, #3498db, #8e44ad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.giveaway-image {
    margin: 20px 0;
}

.giveaway-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Form styles */
.giveaway-form-container {
    margin-top: 20px;
}

.giveaway-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-group input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
    background: #fff;
}

.giveaway-submit {
    padding: 14px 24px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.giveaway-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.giveaway-submit:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Message styles */
.giveaway-message {
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
}

.giveaway-message.success {
    background-color: #d4edda;
    color: #155724;
}

.giveaway-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Timer styles */
.giveaway-timer-message h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-value {
    font-size: 40px;
    font-weight: 800;
    color: #2c3e50;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.countdown-label {
    font-size: 12px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.8);
    padding: 4px 8px;
    border-radius: 12px;
    margin-top: 5px;
}

/* Responsive styles */
@media (max-width: 600px) {
    .countdown-timer {
        gap: 8px;
    }
    
    .countdown-unit {
        min-width: 50px;
    }
    
    .countdown-value {
        font-size: 24px;
    }
    
    .countdown-label {
        font-size: 12px;
    }
}

/* Winner announcement styles */
.winner-announcement {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.winner-announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff00cc, #3333ff, #00ccff);
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.winner-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.winner-name {
    font-size: 42px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
