/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.2), rgba(245, 158, 11, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: calc(1.5rem * var(--ui-scale));
    margin: calc(1.25rem * var(--ui-scale)) calc(2.5rem * var(--ui-scale));
    backdrop-filter: blur(10px);
    animation: glow-pulse 3s infinite ease-in-out;
    position: relative;
    overflow: hidden;
}

@keyframes glow-pulse {
    0% { box-shadow: 0 0 calc(1.25rem * var(--ui-scale)) rgba(29, 78, 216, 0.2); }
    50% { box-shadow: 0 0 calc(2.5rem * var(--ui-scale)) rgba(245, 158, 11, 0.3); }
    100% { box-shadow: 0 0 calc(1.25rem * var(--ui-scale)) rgba(29, 78, 216, 0.2); }
}

.welcome-banner h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-2xl);
    font-weight: 600;
    color: var(--soft-white);
    margin-bottom: var(--spacing-xs);
}

.welcome-banner p {
    color: var(--slate-grey);
    font-size: var(--font-base);
}

#user-name {
    background: linear-gradient(135deg, var(--bantu-blue), var(--warm-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* For You Section */
#for-you-section .section-title i,
#following-section .section-title i {
    font-size: var(--font-xl);
}

/* Continue Watching Section */
#continue-watching-section .card-thumbnail {
    position: relative;
}

#continue-watching-section .watch-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(0.375rem * var(--ui-scale));
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

#continue-watching-section .watch-progress-bar {
    height: 100%;
    background: var(--warm-gold);
    border-radius: 0;
    transition: width 0.3s ease;
}

/* Quick Bits Section */
#shorts-container {
    display: flex;
    gap: calc(1rem * var(--ui-scale));
    overflow-x: auto;
    padding: calc(0.5rem * var(--ui-scale)) calc(0.25rem * var(--ui-scale));
    scrollbar-width: thin;
    scrollbar-color: var(--warm-gold) var(--card-bg);
}

#shorts-container::-webkit-scrollbar {
    height: 6px;
}

#shorts-container::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 10px;
}

#shorts-container::-webkit-scrollbar-thumb {
    background: var(--warm-gold);
    border-radius: 10px;
}

.short-card {
    flex: 0 0 auto;
    width: calc(10rem * var(--ui-scale));
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: calc(1rem * var(--ui-scale));
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.short-card:hover {
    transform: translateY(calc(-0.375rem * var(--ui-scale)));
    border-color: var(--warm-gold);
}

.short-thumbnail {
    position: relative;
    height: calc(15rem * var(--ui-scale));
    overflow: hidden;
}

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

.short-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.short-card:hover .short-overlay {
    opacity: 1;
}

.short-overlay i {
    color: white;
    font-size: calc(2rem * var(--ui-scale));
    text-shadow: 0 0 calc(0.625rem * var(--ui-scale)) rgba(0,0,0,0.5);
}

.short-info {
    padding: var(--spacing-sm);
}

.short-info h4 {
    font-size: var(--font-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--soft-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.short-info p {
    font-size: var(--font-xs);
    color: var(--slate-grey);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Live Streams Section */
#live-streams-grid .content-card[data-live="true"] .card-badge {
    background: rgba(239, 68, 68, 0.9);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Community Favorites Section */
#community-favorites-grid .content-card .connector-badge {
    background: linear-gradient(135deg, #1D4ED8, #F59E0B);
}

/* Explore All CTA */
.explore-all-cta {
    text-align: center;
    margin: calc(2.5rem * var(--ui-scale)) 0;
}

.explore-btn {
    background: linear-gradient(135deg, var(--bantu-blue), var(--warm-gold));
    border: none;
    border-radius: calc(0.75rem * var(--ui-scale));
    padding: var(--spacing-sm) calc(2.5rem * var(--ui-scale));
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: var(--font-base);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    transition: all 0.3s ease;
}

.explore-btn:hover {
    transform: translateY(calc(-0.1875rem * var(--ui-scale)));
    box-shadow: 0 calc(0.625rem * var(--ui-scale)) calc(1.875rem * var(--ui-scale)) rgba(29, 78, 216, 0.4);
}

.explore-btn i {
    transition: transform 0.3s ease;
}

.explore-btn:hover i {
    transform: translateX(calc(0.3125rem * var(--ui-scale)));
}

/* Keyboard Shortcuts Modal */
#shortcuts-modal kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
    border-radius: calc(0.25rem * var(--ui-scale));
    padding: calc(0.125rem * var(--ui-scale)) calc(0.375rem * var(--ui-scale));
    font-family: 'Inter', sans-serif;
    font-size: var(--font-xs);
    color: var(--warm-gold);
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(1rem * var(--ui-scale));
    color: var(--soft-white);
    font-size: var(--font-sm);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .welcome-banner {
        margin: calc(0.625rem * var(--ui-scale)) calc(1.25rem * var(--ui-scale));
        padding: calc(1rem * var(--ui-scale));
    }
    
    .welcome-banner h2 {
        font-size: var(--font-xl);
    }
    
    .short-card {
        width: calc(8rem * var(--ui-scale));
    }
    
    .short-thumbnail {
        height: calc(12rem * var(--ui-scale));
    }
    
    .shortcuts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .welcome-banner h2 {
        font-size: var(--font-lg);
    }
    
    .welcome-banner p {
        font-size: var(--font-sm);
    }
    
    .short-card {
        width: calc(7rem * var(--ui-scale));
    }
    
    .short-thumbnail {
        height: calc(10.5rem * var(--ui-scale));
    }
    
    .short-info h4 {
        font-size: var(--font-xs);
    }
    
    .short-info p {
        font-size: calc(0.625rem * var(--ui-scale));
    }
}
