/* Codes Page Styles */
.codes-page {
    padding: 40px 0;
}

.codes-header {
    text-align: center;
    margin-bottom: 40px;
    animation: slideIn 0.6s ease-out;
}

.codes-header h1 {
    font-family: 'Lilita One', cursive;
    font-size: 3rem;
    color: var(--brawl-yellow);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
}

.codes-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Code Input Section */
.code-input-section {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--brawl-yellow);
    animation: slideIn 0.5s ease-out;
}

.code-input-section h2 {
    font-family: 'Lilita One', cursive;
    font-size: 1.8rem;
    color: var(--brawl-yellow);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.code-input-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.code-input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-xl);
    font-size: 1.1rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    background: rgba(15, 52, 96, 0.8);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.code-input::placeholder {
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: normal;
}

.code-input:hover,
.code-input:focus {
    border-color: var(--brawl-yellow);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
    outline: none;
}

.redeem-button {
    background: var(--bg-button);
    color: var(--brawl-darker);
    border: none;
    padding: 15px 35px;
    border-radius: var(--radius-xl);
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.redeem-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.redeem-button:active {
    transform: scale(0.95);
}

/* Active Codes Section */
.active-codes {
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Lilita One', cursive;
    font-size: 2rem;
    color: var(--brawl-yellow);
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.code-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--brawl-green);
    position: relative;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
    animation-fill-mode: both;
}

.code-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brawl-green);
}

.code-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.code-card.active {
    border-color: var(--brawl-green);
}

.code-card.active::before {
    background: var(--brawl-green);
}

.code-card.expired {
    border-color: var(--brawl-gray);
    opacity: 0.6;
}

.code-card.expired::before {
    background: var(--brawl-gray);
}

.code-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.code-status.active {
    background: var(--brawl-green);
    color: white;
}

.code-status.expired {
    background: var(--brawl-gray);
    color: white;
}

.code-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brawl-yellow);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    user-select: all;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-text:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.code-reward {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.code-reward strong {
    color: var(--brawl-yellow);
}

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

.copy-button {
    margin-top: 15px;
    background: rgba(255, 193, 7, 0.2);
    color: var(--brawl-yellow);
    border: 2px solid var(--brawl-yellow);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.copy-button:hover {
    background: var(--brawl-yellow);
    color: var(--brawl-darker);
    transform: scale(1.05);
}

/* Instructions Section */
.instructions {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--brawl-blue);
    animation: slideIn 0.6s ease-out;
}

.instructions h2 {
    font-family: 'Lilita One', cursive;
    font-size: 1.8rem;
    color: var(--brawl-yellow);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.instructions ol {
    list-style: none;
    counter-reset: step;
}

.instructions li {
    counter-increment: step;
    margin-bottom: 15px;
    padding-left: 50px;
    position: relative;
}

.instructions li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--brawl-blue);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.instructions li p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .codes-header h1 {
        font-size: 2rem;
    }
    
    .code-input-wrapper {
        flex-direction: column;
    }
    
    .code-input {
        min-width: 100%;
    }
    
    .codes-grid {
        grid-template-columns: 1fr;
    }
}
