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

/* Body */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem;
}

/* ---------------- Banner Section ---------------- */
.banner {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: blue;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Box */
.search-box {
    background: white;
    border-radius: 16px;
    padding: 8px;
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box i.fa-search {
    color: #6b7280;
    margin: 0 16px 0 20px;
    font-size: 1.1rem;
}

#channel-search {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 16px 0;
    color: #374151;
    background: transparent;
}

#channel-search::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
}

.cta-button:active {
    transform: translateY(0);
}

/* ---------------- Analytics Section ---------------- */
.analytics-section {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.dashboard-content {
    padding: 2rem;
}

/* Channel Header */
.channel-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
}

#channel-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e9ecef;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.channel-info h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Channel Stats */
.channel-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
    color: #495057;
}

/* Channel Link */
.channel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.channel-link:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.analytics-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-value {
    font-size: 1.25rem;
    color: #2c3e50;
    font-weight: 600;
}

.revenue-card {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.revenue-card .card-label {
    color: rgba(255, 255, 255, 0.8);
}

.revenue-card .card-value {
    color: white;
    font-size: 1.5rem;
}

/* ---------------- Responsive Design ---------------- */
@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .banner {
        padding: 60px 20px;
    }

    .banner h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .search-box {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    #channel-search {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }

    .search-box i.fa-search {
        display: none;
    }

    .channel-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .channel-stats {
        justify-content: center;
    }

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

    .section-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .banner h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}
