/* Reset and Base Styles */
:root {
    --primary-dark-blue: #0a0e17;
    --secondary-dark-blue: #131a2c;
    --accent-blue: #1a56db;
    --neon-blue: #0066ff;
    --neon-purple: #8a2be2;
    --text-light: #f3f4f6;
    --text-gray: #9ca3af;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --online: #00ff00;
    --offline: #6b7280;
}

/* Main Content */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../img/streams/gaming-background-zdy96kg2pztes6bz.jpg');
    background-size: cover;
    background-position: center;
    height: 400px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.hero-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 86, 219, 0.3) 0%, rgba(138, 43, 226, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    /* max-width: 600px; */
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border-radius: 2px;
}

/* Stream Grid */
.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stream-card {
    background: linear-gradient(145deg, var(--secondary-dark-blue), var(--primary-dark-blue));
    border-radius: 12px;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    top: 0;
    left: 0;
    border: 1px solid rgba(58, 90, 169, 0.2);
    transition: all 0.5s ease;
}

.stream-card:hover {
    transition: 1s;
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(58, 90, 169, 0.5);
}

.thumbnail-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.stream-card:hover .thumbnail {
    transform: scale(1.08);
}

.status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 3;
}

.status-live {
    background-color: var(--danger);
    color: white;
}

.status-offline {
    background-color: var(--offline);
    color: white;
}

.status-pulse {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--online);
    box-shadow: 0 0 0 rgba(0, 255, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 255, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 0, 0);
    }
}

.viewer-count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 3;
}

.stream-info {
    padding: 1.2rem;
}

.streamer-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-left: 0.75rem;
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 10px rgba(26, 86, 219, 0.5);
    object-fit: cover;
}

.stream-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.game-name {
    color: var(--neon-blue);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/*Loading Card*/

/* YouTube-style loading */
.shimmer-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    display: none;
}

.stream-card.loading .shimmer-loading {
    display: block;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.4s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--primary-dark-blue);
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(58, 90, 169, 0.3);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-dark-blue);
    color: var(--text-light);
    transition: all 0.3s;
}

.social-icons a:hover {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(58, 90, 169, 0.3);
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stream-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .footer-section {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .stream-grid {
        grid-template-columns: 1fr;
    }
}


/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}