/**
 * Xpinay Gaming Platform - Design Stylesheet
 * Website: xpinay.sbs
 * Prefix: g586-
 */

/* ===== CSS Variables ===== */
:root {
    --g586-primary: #1a1a2e;
    --g586-secondary: #16213e;
    --g586-accent: #e94560;
    --g586-accent-hover: #ff6b6b;
    --g586-gold: #ffd700;
    --g586-gold-dark: #daa520;
    --g586-text-light: #ffffff;
    --g586-text-muted: #a0a0a0;
    --g586-bg-dark: #0f0f1a;
    --g586-bg-card: #1f1f35;
    --g586-bg-hover: #2a2a45;
    --g586-border: #333355;
    --g586-success: #00c853;
    --g586-gradient: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    --g586-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --g586-radius: 12px;
    --g586-radius-sm: 8px;
    --g586-transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    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(--g586-bg-dark);
    color: var(--g586-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--g586-transition);
}

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

/* ===== Header ===== */
.g586-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--g586-primary);
    padding: 12px 16px;
    transition: var(--g586-transition);
    border-bottom: 1px solid var(--g586-border);
}

.g586-header.g586-scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--g586-shadow);
}

.g586-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.g586-logo img {
    height: 40px;
    width: auto;
}

.g586-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--g586-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.g586-btn {
    padding: 10px 20px;
    border-radius: var(--g586-radius-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: var(--g586-transition);
    text-align: center;
}

.g586-btn-login {
    background: transparent;
    border: 2px solid var(--g586-accent);
    color: var(--g586-accent);
}

.g586-btn-login:hover {
    background: var(--g586-accent);
    color: var(--g586-text-light);
}

.g586-btn-register {
    background: var(--g586-gradient);
    color: var(--g586-text-light);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

.g586-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.5);
}

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

/* ===== Hero Section ===== */
.g586-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--g586-primary) 0%, var(--g586-secondary) 50%, var(--g586-bg-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 16px 80px;
}

.g586-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/6e58655a_1.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.g586-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
}

.g586-hero-badge {
    display: inline-block;
    background: var(--g586-gradient);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.g586-hero-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.g586-hero-title span {
    color: var(--g586-gold);
}

.g586-hero-desc {
    font-size: 16px;
    color: var(--g586-text-muted);
    margin-bottom: 30px;
}

.g586-hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.g586-btn-large {
    padding: 15px 35px;
    font-size: 16px;
}

/* ===== Game Categories ===== */
.g586-categories {
    padding: 60px 16px;
    background: var(--g586-bg-dark);
}

.g586-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.g586-section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.g586-section-title span {
    color: var(--g586-accent);
}

.g586-section-subtitle {
    color: var(--g586-text-muted);
    font-size: 16px;
}

.g586-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.g586-tab-btn {
    padding: 10px 20px;
    background: var(--g586-bg-card);
    border: 1px solid var(--g586-border);
    border-radius: var(--g586-radius-sm);
    color: var(--g586-text-light);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--g586-transition);
}

.g586-tab-btn:hover,
.g586-tab-btn.g586-active {
    background: var(--g586-accent);
    border-color: var(--g586-accent);
}

/* ===== Game Grid ===== */
.g586-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.g586-game-card {
    background: var(--g586-bg-card);
    border-radius: var(--g586-radius);
    overflow: hidden;
    transition: var(--g586-transition);
    cursor: pointer;
    border: 1px solid var(--g586-border);
}

.g586-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
    border-color: var(--g586-accent);
}

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

.g586-game-info {
    padding: 10px;
    text-align: center;
}

.g586-game-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--g586-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.g586-game-type {
    font-size: 11px;
    color: var(--g586-accent);
    text-transform: uppercase;
    margin-top: 4px;
}

/* ===== Features Section ===== */
.g586-features {
    padding: 60px 16px;
    background: var(--g586-secondary);
}

.g586-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.g586-feature-card {
    background: var(--g586-bg-card);
    padding: 30px;
    border-radius: var(--g586-radius);
    text-align: center;
    border: 1px solid var(--g586-border);
    transition: var(--g586-transition);
}

.g586-feature-card:hover {
    border-color: var(--g586-accent);
    transform: translateY(-3px);
}

.g586-feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--g586-gold);
}

.g586-feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.g586-feature-desc {
    font-size: 14px;
    color: var(--g586-text-muted);
}

/* ===== CTA Section ===== */
.g586-cta {
    padding: 80px 16px;
    background: linear-gradient(135deg, var(--g586-accent) 0%, #ff6b6b 100%);
    text-align: center;
}

.g586-cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.g586-cta-desc {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.g586-btn-white {
    background: var(--g586-text-light);
    color: var(--g586-accent);
    font-weight: 700;
}

.g586-btn-white:hover {
    background: var(--g586-gold);
    color: var(--g586-primary);
}

/* ===== Footer ===== */
.g586-footer {
    background: var(--g586-primary);
    padding: 40px 16px 20px;
    border-top: 1px solid var(--g586-border);
}

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

.g586-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.g586-footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--g586-gold);
}

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

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

.g586-footer-links a {
    color: var(--g586-text-muted);
    font-size: 14px;
}

.g586-footer-links a:hover {
    color: var(--g586-accent);
}

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

.g586-copyright {
    color: var(--g586-text-muted);
    font-size: 13px;
}

/* ===== Mobile Bottom Navigation ===== */
.g586-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--g586-primary);
    border-top: 1px solid var(--g586-border);
    padding: 8px 0;
    display: none;
}

.g586-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.g586-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    min-width: 60px;
    min-height: 50px;
    cursor: pointer;
    transition: var(--g586-transition);
    border-radius: var(--g586-radius-sm);
}

.g586-nav-item:hover {
    background: var(--g586-bg-hover);
}

.g586-nav-item i {
    font-size: 24px;
    color: var(--g586-text-muted);
    transition: var(--g586-transition);
}

.g586-nav-item:hover i,
.g586-nav-item.g586-active i {
    color: var(--g586-accent);
}

.g586-nav-item span {
    font-size: 11px;
    color: var(--g586-text-muted);
    font-weight: 500;
}

.g586-nav-item:hover span,
.g586-nav-item.g586-active span {
    color: var(--g586-accent);
}

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

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

.g586-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: var(--g586-transition);
}

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

.g586-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--g586-border);
}

.g586-menu-close {
    background: transparent;
    border: none;
    color: var(--g586-text-light);
    font-size: 28px;
    cursor: pointer;
}

.g586-menu-links {
    list-style: none;
}

.g586-menu-links li {
    margin-bottom: 5px;
}

.g586-menu-links a {
    display: block;
    padding: 12px 15px;
    color: var(--g586-text-light);
    font-size: 15px;
    border-radius: var(--g586-radius-sm);
    transition: var(--g586-transition);
}

.g586-menu-links a:hover {
    background: var(--g586-bg-hover);
    color: var(--g586-accent);
}

/* ===== Back to Top ===== */
.g586-back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--g586-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--g586-transition);
    z-index: 999;
    box-shadow: var(--g586-shadow);
}

.g586-back-to-top.g586-visible {
    opacity: 1;
    visibility: visible;
}

.g586-back-to-top:hover {
    background: var(--g586-accent-hover);
    transform: translateY(-3px);
}

.g586-back-to-top i {
    color: var(--g586-text-light);
    font-size: 20px;
}

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

.g586-fade-in {
    animation: g586FadeIn 0.5s ease forwards;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .g586-header-actions .g586-btn {
        display: none;
    }

    .g586-menu-toggle {
        display: block;
    }

    .g586-bottom-nav {
        display: block;
    }

    .g586-hero-title {
        font-size: 32px;
    }

    .g586-section-title {
        font-size: 26px;
    }

    .g586-cta-title {
        font-size: 28px;
    }

    main {
        padding-bottom: 80px;
    }

    .g586-back-to-top {
        bottom: 90px;
    }
}

@media (max-width: 430px) {
    .g586-hero {
        padding: 80px 12px 70px;
    }

    .g586-hero-title {
        font-size: 28px;
    }

    .g586-hero-desc {
        font-size: 14px;
    }

    .g586-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .g586-tabs {
        gap: 6px;
    }

    .g586-tab-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}
