/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
    border-color: #764ba2;
}

.logo h2 a {
    color: #667eea;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.logo h2 {
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-2px);
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#search-input {
    border: none;
    outline: none;
    padding: 0.5rem;
    width: 250px;
    font-size: 14px;
}

#search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
}

.stat-label {
    display: block;
    font-size: 1rem;
    opacity: 0.8;
}

/* Featured Codes Section */
.featured-codes {
    background: white;
    padding: 4rem 0;
    margin-top: -2rem;
    border-radius: 30px 30px 0 0;
    position: relative;
}

.featured-codes h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2.2rem;
}

.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.code-card {
    background: linear-gradient(145deg, #f8f9ff, #e8f0fe);
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.code-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.code-card.featured {
    border-color: #667eea;
    background: linear-gradient(145deg, #f0f4ff, #e6f0ff);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.code-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.code-status.active {
    background: #10b981;
    color: white;
}

.code-status.expired {
    background: #ef4444;
    color: white;
}

.code-type {
    padding: 0.3rem 0.8rem;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.code-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.code-text {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    background: rgba(102, 126, 234, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    flex: 1;
    text-align: center;
    letter-spacing: 1px;
}

.copy-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

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

.code-reward {
    font-size: 1.1rem;
    font-weight: 600;
    color: #10b981;
    text-align: center;
}

.view-all {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Monthly Codes Section */
.monthly-codes {
    background: #f8f9fa;
    padding: 4rem 0;
}

.monthly-codes h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2.2rem;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.month-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.month-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    color: #667eea;
}

.month-card.current {
    border: 2px solid #667eea;
    background: linear-gradient(145deg, #f0f4ff, #e6f0ff);
}

.month-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.month-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.month-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Wiki Section */
.wiki-section {
    background: white;
    padding: 4rem 0;
}

.wiki-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2.2rem;
}

.wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.wiki-card {
    background: linear-gradient(145deg, #f8f9ff, #e8f0fe);
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    text-align: center;
}

.wiki-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.wiki-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.wiki-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.wiki-card p {
    color: #666;
    line-height: 1.5;
}

/* How to Redeem Section */
.how-to-redeem {
    background: #f8f9fa;
    padding: 4rem 0;
}

.how-to-redeem h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-size: 2.2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-content h3 {
    margin: 1rem 0 0.5rem 0;
    color: #333;
}

.step-content p {
    color: #666;
    line-height: 1.5;
}

/* Footer */
.main-footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

/* SEO Content Section */
.seo-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

.seo-content .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.seo-content h2 {
    color: #2d3748;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-content h3 {
    color: #4a5568;
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.seo-content p {
    color: #2d3748;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-align: justify;
}

.seo-content strong {
    color: #667eea;
    font-weight: 600;
}

/* Disabled month cards */
.month-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.month-card.disabled .month-thumbnail {
    filter: grayscale(50%);
}

.month-card.disabled p {
    color: #a0aec0;
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    #search-input {
        width: 200px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .codes-grid {
        grid-template-columns: 1fr;
    }
    
    .months-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wiki-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .months-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .featured-codes h2,
    .monthly-codes h2,
    .wiki-section h2,
    .how-to-redeem h2 {
        font-size: 1.8rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.code-card,
.month-card,
.wiki-card,
.step {
    animation: fadeInUp 0.6s ease-out;
}

/* Copy Success Animation */
.copy-success {
    background: #10b981 !important;
    transform: scale(1.05);
}

.copy-success::after {
    content: "Copied!";
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}