/* GoDrop - Global Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #ffffff;
}

/* Header */
header {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    color: white;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav select {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

nav select option {
    color: #1a1a1a;
    background: white;
}

nav select:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1a1a1a;
    line-height: 1.2;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1976D2;
    font-weight: 600;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #555;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.3);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(25, 118, 210, 0.4);
}

.btn-primary:active {
    transform: translateY(-2px);
}

/* Concept Section */
.concept {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    padding: 4rem 2rem;
    border-radius: 16px;
    margin: 3rem 0;
    text-align: center;
    border-left: 8px solid #1976D2;
}

.concept h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.concept-item {
    padding: 1.5rem;
}

.concept-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #1565C0;
    font-weight: 700;
}

.concept-item p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature {
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #E3F2FD;
    transition: all 0.3s ease;
    text-align: center;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(25, 118, 210, 0.15);
    border-color: #1976D2;
}

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

.feature h3 {
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.feature p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
}

/* How it Works */
.how-it-works {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 2px solid #E3F2FD;
    border-bottom: 2px solid #E3F2FD;
}

.how-it-works h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

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

.step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
    font-weight: 700;
}

.step p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    color: white;
    padding: 4rem 2rem;
    border-radius: 16px;
    margin: 3rem 0;
    text-align: center;
}

.download-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-download {
    padding: 1.2rem 2.5rem;
    background: white;
    color: #1976D2;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-download:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: #F5F5F5;
    color: #666;
    margin-top: 3rem;
    border-top: 2px solid #E3F2FD;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .concept h2 {
        font-size: 1.8rem;
    }
    
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .how-it-works h2 {
        font-size: 1.8rem;
    }
    
    .download-section h2 {
        font-size: 1.6rem;
    }
    
    .cta-buttons,
    .download-buttons {
        flex-direction: column;
    }
    
    .btn,
    .btn-download {
        width: 100%;
        justify-content: center;
    }
    
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Hero badge */
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    color: #1565C0;
    border: 1px solid #90CAF9;
    border-radius: 24px;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

/* Secondary CTA button */
.btn-secondary {
    background: transparent;
    color: #1976D2;
    border: 2px solid #1976D2;
    box-shadow: none;
}
.btn-secondary:hover {
    background: #1976D2;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(25,118,210,0.2);
}

/* Section title */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 3.5rem 0 2rem;
    color: #1a1a1a;
    font-weight: 800;
}

/* ── Live Stats ────────────────────────────────────────────────── */
.stats-section {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #1976D2 100%);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
    color: white;
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-badge {
    color: #69F0AE;
    animation: pulse-live 1.8s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    transition: background 0.3s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.18);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: #E3F2FD;
    line-height: 1;
    margin-bottom: 0.4rem;
    letter-spacing: -1px;
    min-height: 2.8rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Community Section ────────────────────────────────────────── */
.community-section {
    margin: 4rem 0;
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.community-card {
    background: #fff;
    border: 2px solid #E3F2FD;
    border-radius: 16px;
    padding: 2rem;
    transition: box-shadow 0.3s;
}

.community-card:hover {
    box-shadow: 0 8px 28px rgba(25,118,210,0.1);
}

.community-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.community-card-sub {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
}

/* Leaderboard */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.55rem 0.8rem;
    background: #F8F9FF;
    border-radius: 8px;
    font-size: 0.9rem;
}

.lb-rank {
    font-size: 1rem;
    min-width: 2rem;
    text-align: center;
    font-weight: 700;
    color: #888;
}

.lb-rank-top {
    font-size: 1.15rem;
}

.lb-username {
    flex: 1;
    font-weight: 600;
    color: #1a1a1a;
}

.lb-count {
    font-size: 0.8rem;
    color: #1976D2;
    font-weight: 600;
    white-space: nowrap;
}

/* Categories */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.cat-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.cat-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.cat-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
}

.cat-meta {
    font-size: 0.75rem;
    color: #888;
}

.cat-bar-wrap {
    height: 6px;
    background: #E3F2FD;
    border-radius: 3px;
    overflow: hidden;
}

.cat-bar {
    height: 100%;
    background: linear-gradient(90deg, #1976D2, #42A5F5);
    border-radius: 3px;
    transition: width 1s ease;
}

.loading-placeholder {
    color: #aaa;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

/* ── Responsive additions ─────────────────────────────────────── */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
