/* ════════════════════════════════════════════════
 * HOME PAGE v1.0.19 - Back to basics with gallery
 * ════════════════════════════════════════════════ */

/* 1. HEADER */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 20px 80px;
    text-align: center;
    color: white;
}

.hero .glitch {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 20px 0;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.hero .tagline {
    font-size: 1.3rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #FF6B6B;
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
}

.btn-secondary:hover {
    background: #f0f0ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* 2. HOW IT WORKS - Small Step Buttons */
.how-it-works {
    padding: 60px 20px;
    background: white;
}

.how-it-works h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin: 0 0 40px 0;
}

.steps {
    display: flex;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    padding: 30px 20px;
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

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

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.step p {
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

/* 3. GALLERY */
.gallery-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin: 0 0 50px 0;
}

.gallery-controls {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sort-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.sort-controls label {
    font-weight: 700;
    font-size: 1.1rem;
}

.sort-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    border-color: #667eea;
    background: #f0f0ff;
}

.sort-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.search-controls input {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
}

.tags-filter {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.tags-filter label {
    font-weight: 700;
    font-size: 1.1rem;
}

.tags-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-filter-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag-filter-btn:hover {
    border-color: #FF6B6B;
}

.tag-filter-btn.active {
    background: #FF6B6B;
    color: white;
    border-color: #FF6B6B;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.meme-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.meme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.meme-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.meme-info {
    padding: 15px;
}

.meme-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.meme-tag {
    background: #f0f0ff;
    color: #667eea;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.meme-stats {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 0.9rem;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-size: 1.3rem;
    color: #999;
}

.btn-load-more {
    display: block;
    margin: 50px auto 0;
    padding: 15px 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-load-more.hidden {
    display: none;
}

/* 4. WHAT'S HAPPENING */
.whats-happening {
    padding: 80px 20px;
    background: white;
}

.whats-happening h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin: 0 0 30px 0;
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
}

.happening-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.happening-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
}

.happening-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.happening-box p {
    line-height: 1.8;
    color: #666;
}

.happening-box ol {
    padding-right: 20px;
    line-height: 2;
}

.happening-box li {
    margin-bottom: 10px;
    color: #666;
}

/* 5. FOOTER */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-links a:hover {
    color: #4ECDC4;
}

.footer-copy {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.footer-copy p {
    margin: 0;
}

/* Stats Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #c0392b;
    transform: rotate(90deg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-box {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 16px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .glitch {
        font-size: 2.5rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}
