/* Homepage Specific Styles */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 15px;
}

.hero-search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-search-icon {
    position: absolute;
    left: 20px;
    color: #7f8c8d;
    z-index: 2;
}

.hero-search-input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    background: white;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.hero-search-input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-search-input::placeholder {
    color: #95a5a6;
}

.hero-search-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    white-space: nowrap;
}

.hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* All Categories */
.all-categories {
    margin: 60px 0;
}

.all-categories h2 {
    font-size: 32px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.category-link {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.category-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Channels Sections */
.channels-section {
    margin: 50px 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
}

.channels-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.channels-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.channel-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.channel-item .channel-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #f1f3f4;
    flex-shrink: 0;
}

.channel-item .channel-info {
    flex: 1;
    min-width: 0;
}

.channel-item .channel-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-item .channel-subscribers {
    font-size: 14px;
    color: #7f8c8d;
}

.section-more-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid #3498db;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.section-more-link:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Popular Queries */
.popular-queries {
    margin: 50px 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 30px;
}

.popular-queries h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 25px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.queries-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.query-link {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #3498db;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.query-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    text-decoration: none;
}

/* SEO Text */
.seo-text {
    margin: 50px 0;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.seo-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #5a6c7d;
    margin-bottom: 20px;
}

.seo-text p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-search {
        flex-direction: column;
        gap: 15px;
    }

    .hero-search-btn {
        align-self: center;
        padding: 16px 40px;
    }

    .categories-list {
        justify-content: flex-start;
    }

    .channels-list {
        grid-template-columns: 1fr;
    }

    .channels-section h2 {
        font-size: 24px;
    }

    .all-categories h2 {
        font-size: 28px;
    }

    .popular-queries h2 {
        font-size: 24px;
    }

    .seo-text {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-search-input {
        padding: 14px 18px 14px 50px;
        font-size: 14px;
    }

    .hero-search-btn {
        padding: 14px 30px;
        font-size: 14px;
    }

    .channels-section {
        padding: 20px;
    }

    .all-categories {
        margin: 40px 0;
    }

    .channels-section {
        margin: 30px 0;
    }

    .popular-queries {
        margin: 30px 0;
        padding: 20px;
    }

    .seo-text {
        margin: 30px 0;
        padding: 20px;
    }
}