/* Giftcode Page Styles */
.giftcode-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: white;
}

.giftcode-title {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #FFD700;
}

.giftcode-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.giftcode-input {
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.giftcode-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transform: scale(1.02);
}

.giftcode-button {
    padding: 15px 30px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: none;
    border-radius: 10px;
    font-family: 'Bangers', cursive;
    font-size: 1.5rem;
    color: #333;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.giftcode-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

.giftcode-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    font-size: 1.1rem;
}

.alert-success {
    background: rgba(40, 167, 69, 0.9);
    border: 2px solid #28a745;
    color: white;
}

.alert-error {
    background: rgba(220, 53, 69, 0.9);
    border: 2px solid #dc3545;
    color: white;
}

.reward-list {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 10px;
}

.reward-item:last-child {
    margin-bottom: 0;
}

.reward-name {
    font-weight: bold;
    color: #FFD700;
}

.reward-quantity {
    background: rgba(255, 215, 0, 0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: bold;
}

.giftcode-description {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .giftcode-container {
        margin: 20px;
        padding: 20px;
    }
    
    .giftcode-title {
        font-size: 2.5rem;
    }
    
    .giftcode-input {
        font-size: 1rem;
        padding: 12px;
    }
    
    .giftcode-button {
        font-size: 1.3rem;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .giftcode-title {
        font-size: 2rem;
    }
    
    .input-group label {
        font-size: 1.3rem;
    }
    
    .giftcode-input {
        letter-spacing: 1px;
    }
}

/* Animation for success/error messages */
.alert {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation for button */
.giftcode-button.loading {
    position: relative;
    color: transparent;
}

.giftcode-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #333;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
