/* Vlogs Component CSS */

/* Vlogs Page Container */
.vlogs-page {
    padding: 40px 0;
    min-height: 100vh;
}

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

@media (max-width: 768px) {
    .vlogs-page .container {
        padding: 0 15px;
    }
}

/* Vlogs Header - YouTube Channel Style */
.vlogs-header {
    margin-bottom: 30px;
}

.vlogs-banner {
    width: 100%;
    height: 200px;
    background-image: url('https://yt3.googleusercontent.com/gwdVZOvIUNXqqiZhh_GiiU8h_Gx4QTmFhK_QOUVCbu-Mi5MntJpQwRXGqdExR9LGdITIrhOb=w1707-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    filter: brightness(1.1) contrast(1.05);
}

.vlogs-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    border-radius: 16px;
}

.vlogs-channel-info {
    background: white;
    padding: 30px 0;
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}


.vlogs-channel-details {
    flex: 1;
}

.vlogs-channel-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.vlogs-channel-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.4;
}

.vlogs-channel-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.channel-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.channel-stat i {
    color: #ff0000;
}

.vlogs-subscribe-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.subscribe-btn {
    background: #ff0000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.subscribe-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

/* YouTube Subscribe Widget Styling */
.g-ytsubscribe {
    margin: 0;
    padding: 0;
}

/* Ensure YouTube button fits well in the layout */
.vlogs-subscribe-section .g-ytsubscribe {
    display: inline-block;
}

.channel-link {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.channel-link:hover {
    color: #ff0000;
}

/* Vlogs Filters */
.vlogs-filters {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.filter-group select {
    padding: 10px 12px;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    background: white;
    color: #2c3e50;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #3498db;
}

.filter-group select:hover {
    border-color: #bdc3c7;
}

/* Loading State */
.vlogs-loading {
    text-align: center;
    padding: 60px 0;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vlogs-loading p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Error State */
.vlogs-error {
    text-align: center;
    padding: 60px 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.vlogs-error h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}

.vlogs-error p {
    color: #7f8c8d;
    margin-bottom: 25px;
}

.retry-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: #2980b9;
}

/* Vlogs Content */
.vlogs-content {
    display: grid;
    gap: 40px;
}

/* Category Section */
.vlogs-category {
    margin-bottom: 30px;
}

.category-header {
    text-align: left;
    margin-bottom: 30px;
    padding-bottom: 0px;
    border-bottom: 2px solid #ecf0f1;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
}

/* Vlogs Grid */
.vlogs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    justify-content: start;
}

/* Individual Vlog Card */
.vlog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
}

.vlog-card.featured {
    border-color: #f39c12;
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.2);
}

/* Thumbnail Section - 16:9 Aspect Ratio */
.vlog-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.vlog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Featured Badge */
.featured-badge {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 3px 10px 3px 5px;
    font-size: 12px;
    font-weight: 600;
    position: absolute;
    border-radius: 0px 0px 5px 0px;
}

/* Vlog Info */
.vlog-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 150px;
}

.vlog-title {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.vlog-description {
    color: #7f8c8d;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Location Badges */
.vlog-location-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.location-badge {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
}

.location-badge.city {
    background: #e3f2fd;
    color: #1976d2;
}

.location-badge.state {
    background: #f3e5f5;
    color: #7b1fa2;
}

.location-badge.country {
    background: #e8f5e8;
    color: #388e3c;
}

/* Upload Date */
.vlog-date {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

/* No Vlogs State */
.no-vlogs {
    text-align: center;
    padding: 60px 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.no-vlogs-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-vlogs h3 {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.no-vlogs p {
    color: #95a5a6;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .vlogs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .vlogs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vlogs-banner {
        height: 150px;
        border-radius: 12px;
    }
    
    .vlogs-channel-info {
        padding: 20px 0;
    }
    
    .vlogs-channel-name {
        font-size: 2rem;
    }
    
    .vlogs-channel-subtitle {
        font-size: 1rem;
    }
    
    .vlogs-channel-stats {
        justify-content: flex-start;
        gap: 15px;
    }
    
    .vlogs-subscribe-section {
        justify-content: flex-start;
        width: 100%;
    }
    
    .subscribe-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .vlogs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vlogs-page {
        padding: 20px 0;
    }
    
    .vlogs-banner {
        height: 120px;
        border-radius: 8px;
    }
    
    .vlogs-channel-info {
        padding: 15px 0;
    }
    
    .vlogs-channel-name {
        font-size: 1.8rem;
    }
    
    .vlogs-channel-subtitle {
        font-size: 0.9rem;
    }
    
    .vlogs-channel-stats {
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .channel-stat {
        font-size: 0.8rem;
    }
    
    .vlogs-subscribe-section {
        justify-content: flex-start;
        width: 100%;
    }
    
    .subscribe-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .vlog-info {
        padding: 15px;
    }
}