/* Modern CSS Reset and Variables */
:root {
    --primary-color: #e50914;
    --primary-dark: #b2070f;
    --secondary-color: #1e1e1e;
    --accent-color: #ff4757;
    --text-light: #f4f4f4;
    --text-dark: #333;
    --bg-light: #f8f9fa;
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #000 100%);
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/uploads/images/gta-background.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.logo-container {
    margin-bottom: 1rem;
}

.logo {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.header-text h1 {
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
}

.header-text p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.login-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    z-index: 10;
}

.login-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* Downloads Section */
.downloads-section {
    margin-bottom: 4rem;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.download-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.download-card.highlight {
    border: 2px solid var(--primary-color);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.card-icon img {
    width: 80px;
    height: auto;
	border-radius: 5px;
}

.download-card h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.download-card p {
    color: rgba(255, 255, 255, 0.7);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.card-btn {
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.card-btn:hover {
    background-color: var(--primary-dark);
}

.card-btn.primary {
    background-color: var(--primary-color);
}

/* Stats Section */
.stats-section {
    margin-bottom: 4rem;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 3rem 1rem;
    border-radius: var(--border-radius);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Enhanced Gallery Section */
.screenshots-section {
    margin-bottom: 6rem;
}

.screenshot-gallery {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
}

.gallery-container {
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 500px;
}

.gallery-track img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-track img:hover {
    transform: scale(1.02);
}

.gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.gallery-btn {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
}

.gallery-btn:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.gallery-pagination {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
}

/* Enhanced Staff Section */
.staff-section {
    margin-bottom: 6rem;
}

.staff-container {
    position: relative;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

/* Initially hide all staff except first 3 */
.staff-profile:nth-child(n+4) {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When show-all is active, show all staff */
.staff-grid.show-all .staff-profile {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for when showing all */
.staff-grid.show-all .staff-profile:nth-child(4) { transition-delay: 0.1s; }
.staff-grid.show-all .staff-profile:nth-child(5) { transition-delay: 0.2s; }
.staff-grid.show-all .staff-profile:nth-child(6) { transition-delay: 0.3s; }
.staff-grid.show-all .staff-profile:nth-child(7) { transition-delay: 0.4s; }
.staff-grid.show-all .staff-profile:nth-child(8) { transition-delay: 0.5s; }
.staff-grid.show-all .staff-profile:nth-child(n+9) { transition-delay: 0.6s; }

.staff-profile {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.staff-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.1), transparent);
    transition: left 0.6s;
}

.staff-profile:hover {
    transform: translateY(-8px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: var(--box-shadow);
}

.staff-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-color);
    padding: 2px;
    background: var(--bg-dark);
    transition: var(--transition);
}

.staff-name {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.staff-role {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff; /* inline style overrides if provided */
}

.kick-button {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  color: black; /* inline style overrides if provided */
  background: #00E701;
  cursor: pointer;
}

/* Show All Button */
.show-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem auto 0;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.show-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.show-all-btn:hover::before {
    left: 100%;
}

.show-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.show-all-btn svg {
    transition: transform 0.3s ease;
}

.show-all-btn.expanded svg {
    transform: rotate(180deg);
}

/* Hide button when all staff are shown */
.staff-grid.show-all + .show-all-btn {
    display: none;
}

/* Responsive Design for Staff Section */
@media (max-width: 768px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .staff-profile {
        padding: 1.5rem;
    }
    
    .show-all-btn {
        margin: 2rem auto 0;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

.show-all-btn.show-less {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--glass-border);
}

.show-all-btn.show-less:hover {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--secondary-color) 100%);
}

.staff-count-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

@media (max-width: 480px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
    
    .staff-profile {
        padding: 1.25rem;
    }
}

/* Videos Section */
.videos-section {
    margin-bottom: 4rem;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.watch-btn {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.watch-btn:hover {
    background-color: var(--primary-dark);
}


/* Enhanced Social Section */
.social-section {
    margin-bottom: 6rem;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    font-weight: 500;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--box-shadow);
    border-color: transparent;
}

.social-link.youtube:hover {
    background: linear-gradient(135deg, #FF0000, #CC0000);
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, #E1306C, #C13584);
}

.social-link.whatsapp:hover {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.social-link.discord:hover {
    background: linear-gradient(135deg, #7289DA, #5A6EAB);
}


/* Footer */
.main-footer {
    background-color: #000;
    padding: 3rem 1rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    width: 50px;
    height: auto;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .header-content {
        padding-top: 1rem;
    }
    
    .login-btn {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 1rem;
    }
    
    .download-cards {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-track img {
        height: 300px;
    }
    
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection Styling */
::selection {
    background-color: var(--primary-color);
    color: white;
}
  


/* Enhanced streamer Section */
.streamer-section {
    margin-bottom: 6rem;
}

.streamer-container {
    position: relative;
}

.streamer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

/* When show-all is active, show all streamer */
.streamer-grid.show-all .streamer-profile {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for when showing all */
.streamer-grid.show-all .streamer-profile:nth-child(4) { transition-delay: 0.1s; }
.streamer-grid.show-all .streamer-profile:nth-child(5) { transition-delay: 0.2s; }
.streamer-grid.show-all .streamer-profile:nth-child(6) { transition-delay: 0.3s; }
.streamer-grid.show-all .streamer-profile:nth-child(7) { transition-delay: 0.4s; }
.streamer-grid.show-all .streamer-profile:nth-child(8) { transition-delay: 0.5s; }
.streamer-grid.show-all .streamer-profile:nth-child(n+9) { transition-delay: 0.6s; }

.streamer-profile {
    position: relative;
    padding: 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    background: var(--card-bg); /* fallback color */
    overflow: hidden;
    transition: var(--transition);
}

.streamer-profile::before {
    content: '';
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    background-image: var(--banner-url); /* dynamic banner */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: grayscale(80%); /* grayscale only on background */
    z-index: 0; /* behind content */
}

.streamer-profile > * {
    position: relative;
    z-index: 1; /* content stays above background */
}

.streamer-profile:hover {
    transform: translateY(-8px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: var(--box-shadow);
}


.streamer-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--primary-color);
    padding: 2px;
    background: var(--bg-dark);
    transition: var(--transition);
}

.streamer-name {
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.streamer-role {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff; /* inline style overrides if provided */
}
