/**
 * Plus7 Gaming Platform - Stylesheet
 * Website: plus7.sbs
 * Prefix: v8cc-
 */

/* CSS Variables */
:root {
    --v8cc-primary: #7c3aed;
    --v8cc-primary-dark: #5b21b6;
    --v8cc-primary-light: #a78bfa;
    --v8cc-secondary: #f59e0b;
    --v8cc-secondary-dark: #d97706;
    --v8cc-bg-dark: #0f0a1f;
    --v8cc-bg-card: #1a1333;
    --v8cc-bg-gradient: linear-gradient(135deg, #0f0a1f 0%, #1a1333 50%, #2d1b4e 100%);
    --v8cc-text: #f5f5f5;
    --v8cc-text-muted: #a1a1aa;
    --v8cc-border: rgba(124, 58, 237, 0.3);
    --v8cc-gold: #fbbf24;
    --v8cc-success: #10b981;
    --v8cc-danger: #ef4444;
    --v8cc-header-height: 60px;
    --v8cc-bottom-nav-height: 64px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--v8cc-bg-dark);
    background-image: var(--v8cc-bg-gradient);
    color: var(--v8cc-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--v8cc-primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--v8cc-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.v8cc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--v8cc-header-height);
    background: rgba(15, 10, 31, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--v8cc-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    transition: all 0.3s ease;
}

.v8cc-header.v8cc-scrolled {
    background: rgba(15, 10, 31, 0.98);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.2);
}

.v8cc-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v8cc-logo img {
    height: 36px;
    width: auto;
}

.v8cc-logo-text {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--v8cc-primary-light), var(--v8cc-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v8cc-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.v8cc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.v8cc-btn-primary {
    background: linear-gradient(135deg, var(--v8cc-primary), var(--v8cc-primary-dark));
    color: #fff;
}

.v8cc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.v8cc-btn-secondary {
    background: linear-gradient(135deg, var(--v8cc-secondary), var(--v8cc-secondary-dark));
    color: #000;
}

.v8cc-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.v8cc-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--v8cc-text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Desktop Navigation */
.v8cc-desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .v8cc-desktop-nav {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .v8cc-desktop-nav a {
        color: var(--v8cc-text-muted);
        font-size: 14px;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    .v8cc-desktop-nav a:hover {
        color: var(--v8cc-primary-light);
    }

    .v8cc-menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .v8cc-menu-toggle {
        display: block;
    }
}

/* Mobile Menu */
.v8cc-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--v8cc-bg-card);
    z-index: 9999;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.v8cc-mobile-menu.v8cc-active {
    right: 0;
}

.v8cc-mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--v8cc-text);
    font-size: 28px;
    cursor: pointer;
}

.v8cc-mobile-menu a {
    display: block;
    padding: 14px 16px;
    color: var(--v8cc-text);
    font-size: 15px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.v8cc-mobile-menu a:hover {
    background: rgba(124, 58, 237, 0.2);
    color: var(--v8cc-primary-light);
}

.v8cc-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.v8cc-menu-overlay.v8cc-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: var(--v8cc-header-height);
}

@media (max-width: 768px) {
    main {
        padding-bottom: calc(var(--v8cc-bottom-nav-height) + 20px);
    }
}

/* Carousel */
.v8cc-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

@media (min-width: 769px) {
    .v8cc-carousel {
        height: 400px;
    }
}

.v8cc-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.v8cc-slide.v8cc-active {
    opacity: 1;
}

.v8cc-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v8cc-carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.v8cc-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v8cc-indicator.v8cc-active {
    background: var(--v8cc-secondary);
    transform: scale(1.2);
}

/* Section Styles */
.v8cc-section {
    padding: 30px 16px;
}

@media (min-width: 769px) {
    .v8cc-section {
        padding: 60px 40px;
        max-width: 1200px;
        margin: 0 auto;
    }
}

.v8cc-section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--v8cc-text);
}

@media (min-width: 769px) {
    .v8cc-section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
}

.v8cc-section-title span {
    color: var(--v8cc-secondary);
}

/* Game Grid */
.v8cc-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (min-width: 430px) {
    .v8cc-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (min-width: 769px) {
    .v8cc-game-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

.v8cc-game-card {
    background: var(--v8cc-bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--v8cc-border);
}

.v8cc-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
    border-color: var(--v8cc-primary);
}

.v8cc-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.v8cc-game-card-name {
    padding: 8px;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .v8cc-game-card-name {
        font-size: 13px;
        padding: 10px;
    }
}

/* Feature Cards */
.v8cc-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 430px) {
    .v8cc-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .v8cc-feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.v8cc-feature-card {
    background: var(--v8cc-bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--v8cc-border);
    transition: all 0.3s ease;
}

.v8cc-feature-card:hover {
    border-color: var(--v8cc-primary);
    transform: translateY(-2px);
}

.v8cc-feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--v8cc-primary), var(--v8cc-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.v8cc-feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--v8cc-text);
}

.v8cc-feature-text {
    font-size: 14px;
    color: var(--v8cc-text-muted);
    line-height: 1.6;
}

/* Bottom Navigation */
.v8cc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--v8cc-bottom-nav-height);
    background: linear-gradient(180deg, rgba(26, 19, 51, 0.98) 0%, rgba(15, 10, 31, 0.99) 100%);
    border-top: 1px solid var(--v8cc-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 769px) {
    .v8cc-bottom-nav {
        display: none;
    }
}

.v8cc-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 4px;
}

.v8cc-nav-item:hover {
    background: rgba(124, 58, 237, 0.15);
}

.v8cc-nav-item.active {
    color: var(--v8cc-secondary);
}

.v8cc-nav-item i,
.v8cc-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.v8cc-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Footer */
.v8cc-footer {
    background: var(--v8cc-bg-card);
    border-top: 1px solid var(--v8cc-border);
    padding: 40px 16px 20px;
}

@media (min-width: 769px) {
    .v8cc-footer {
        padding: 60px 40px 30px;
    }
}

.v8cc-footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.v8cc-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

@media (min-width: 769px) {
    .v8cc-footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

.v8cc-footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--v8cc-secondary);
}

.v8cc-footer-links {
    list-style: none;
}

.v8cc-footer-links li {
    margin-bottom: 10px;
}

.v8cc-footer-links a {
    color: var(--v8cc-text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.v8cc-footer-links a:hover {
    color: var(--v8cc-primary-light);
}

.v8cc-footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--v8cc-border);
}

.v8cc-footer-bottom p {
    color: var(--v8cc-text-muted);
    font-size: 13px;
}

/* Utility Classes */
.v8cc-text-center {
    text-align: center;
}

.v8cc-mb-20 {
    margin-bottom: 20px;
}

.v8cc-hidden-mobile {
    display: none;
}

@media (min-width: 769px) {
    .v8cc-hidden-mobile {
        display: block;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.v8cc-animate-in {
    animation: fadeIn 0.5s ease forwards;
}
