/* GAMEVO - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1dd1a1;
    --secondary-color: #0a1428;
    --accent-color: #ffa500;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --bg-dark: #000000;
    --bg-secondary: #0a0a0a;
    --transition: all 0.3s ease;
}

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;
}

/* Navigation Bar */
.navbar {
    background-color: var(--bg-secondary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(29, 209, 161, 0.1);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}
/* Auth Links */
.auth-links {
    display: flex;
    align-items: center;
    gap: 12px;
}
.user-menu{
    display:flex;
    align-items:center;
    gap:12px;
}

/* ========================================
   GLOBAL USER NAVBAR STYLE
======================================== */

.user-menu{
    display:flex;
    align-items:center; 
    gap:12px;
}

.user-info{
    display:flex;
    align-items:center;
    gap:8px;

    padding:6px 12px;

    background:rgba(139,92,246,.08);
    border:1px solid rgba(139,92,246,.18);

    border-radius:12px;

    transition:.2s ease;
}

.user-info:hover{
    background:rgba(139,92,246,.15);
}

.user-info a{
    color: #ffffff !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    padding: 0 !important;

    text-decoration: none !important;

    font-size: 14px;
    font-weight: 500;
}

.user-avatar{
    width:28px;
    height:28px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#8b5cf6;
    color:white;

    font-size:13px;
    font-weight:700;
}

.logout-link{
    padding:8px 16px;

    border-radius:10px;

    border:1px solid rgba(239,68,68,.5);

    background:rgba(239,68,68,.08);

    color:#ff6b6b;
    text-decoration:none;

    font-size:13px;
    font-weight:600;

    transition:.2s ease;
}

.logout-link:hover{
    background:rgba(239,68,68,.15);
}
.login-link,
.register-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Force link colors */
.login-link:link,
.login-link:visited {
    color: var(--text-light);
}

.register-link:link,
.register-link:visited {
    color: white;
}

.login-link {
    border: 1px solid rgba(29, 209, 161, 0.3);
}

.login-link:hover {
    background-color: rgba(29, 209, 161, 0.1);
    color: var(--primary-color);
}

.register-link {
    background-color: #6c63ff;
}

.register-link:hover {
    opacity: 0.9;
}

.nav-link {
    color: var(--text-light) !important;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
}

.nav-link:visited,
.nav-link:link {
    color: var(--text-light) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after,
.nav-link-page.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 10px;
}

.nav-link-page {
    color: var(--text-light) !important;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
}

.nav-link-page:visited,
.nav-link-page:link {
    color: var(--text-light) !important;
}

.nav-link-page.active {
    color: var(--primary-color);
}

.search-box {
    display: flex;
    align-items: center;
    background-color: rgba(29, 209, 161, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.search-input {
    background: none;
    border: none;
    color: var(--text-light);
    outline: none;
    width: 150px;
    font-size: 0.9rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #050505 0%, #000000 100%);
    padding: 4rem 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 2rem;
    background: linear-gradient(90deg, var(--primary-color), #00a8cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-highlight {
    background-color: rgba(29, 209, 161, 0.05);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

.hero-highlight h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hero-highlight p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Products Section */
.products-section {
    padding: 3rem 2rem;
    background-color: var(--bg-dark);
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(29, 209, 161, 0.1);
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(29, 209, 161, 0.2);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a3a52 0%, #0d1b2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #050505 0%, #000000 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 209, 161, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.features-header p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(29, 209, 161, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(29, 209, 161, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #15b285);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
}

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Social Media Section */
.social-section {
    padding: 4rem 2rem;
    background-color: var(--bg-dark);
    text-align: center;
}

.social-container {
    max-width: 1000px;
    margin: 0 auto;
}

.social-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.social-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 600;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    padding: 2rem;
}

.social-card:hover {
    transform: scale(1.05);
}

.social-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.social-icon svg {
    width: 70%;
    height: 70%;
}

.social-icon.instagram {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 100%);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.social-icon.instagram:hover {
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.6);
}

.social-icon.tiktok {
    background: linear-gradient(135deg, #25f4ee 0%, #ff006e 100%);
    box-shadow: 0 15px 35px rgba(255, 0, 110, 0.4);
}

.social-icon.tiktok:hover {
    box-shadow: 0 20px 50px rgba(255, 0, 110, 0.6);
}

.social-icon.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.4);
}

.social-icon.youtube:hover {
    box-shadow: 0 20px 50px rgba(255, 0, 0, 0.6);
}

.social-card h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Footer */

.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(29, 209, 161, 0.1);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-content p:first-child {
    color: var(--primary-color);
    font-weight: 600;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #15b285;
}

/* ===============================
   GAMEVO Responsive Navbar
   =============================== */

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 38px;
    border: 1px solid rgba(0, 245, 255, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: 0.25s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
    border-color: rgba(0, 245, 255, 0.58);
    background: rgba(0, 245, 255, 0.08);
    outline: none;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #00f5ff;
    border-radius: 99px;
    display: block;
    transition: 0.25s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    body.nav-lock {
        overflow: hidden;
    }

    .navbar {
        z-index: 9999;
    }

    .navbar-container {
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .navbar.navbar-menu-open .navbar-container {
        overflow: visible;
    }

    .logo {
        z-index: 2;
    }

    .logo-text {
        font-size: 20px;
    }

    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        z-index: 10002;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 14px);
        left: 2rem;
        right: 2rem;
        width: auto !important;
        max-width: calc(100% - 4rem);
        box-sizing: border-box;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 14px;
        background:
            linear-gradient(180deg, rgba(15, 24, 31, 0.98), rgba(5, 10, 15, 0.98)),
            radial-gradient(circle at top right, rgba(0, 255, 153, 0.08), transparent 42%);
        border: 1px solid rgba(0, 245, 255, 0.2);
        border-radius: 18px;
        box-shadow:
            0 22px 48px rgba(0, 0, 0, 0.48),
            0 1px 0 rgba(255, 255, 255, 0.04) inset;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px) scale(0.985);
        transform-origin: top center;
        transition:
            opacity 0.22s ease,
            transform 0.22s ease,
            visibility 0.22s ease;
        z-index: 10001;
    }

    .nav-menu.mobile-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-menu .nav-link {
        width: 100%;
        padding: 12px 14px;
        border-radius: 11px;
        text-align: left;
        border: 1px solid transparent;
        background: rgba(255, 255, 255, 0.01);
    }

    .nav-menu .nav-link.active {
        color: #00f5ff !important;
        background: linear-gradient(90deg, rgba(0, 245, 255, 0.14), rgba(0, 255, 153, 0.06));
        border-color: rgba(0, 245, 255, 0.18);
    }

    .nav-menu .nav-link.active::after {
        display: none;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link:focus-visible {
        background: rgba(0, 245, 255, 0.07);
        border-color: rgba(0, 245, 255, 0.12);
        outline: none;
    }

    .user-menu,
    .auth-menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 12px;
        margin-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .user-info {
        justify-content: flex-start;
        width: 100%;
        min-height: 46px;
        padding: 8px 12px;
    }

    .user-profile-link {
        text-align: left;
    }

    .logout-link,
    .login-link,
    .register-link {
        width: 100%;
        text-align: center;
        display: block;
    }

    .menu-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.42);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            opacity 0.22s ease,
            visibility 0.22s ease;
        z-index: 10000;
    }

    .navbar.navbar-menu-open .menu-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (max-width: 420px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .navbar-container {
        padding-left: 14px;
        padding-right: 14px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-image {
        width: 34px;
        height: 34px;
    }

    .nav-menu {
        left: 14px;
        right: 14px;
        width: auto !important;
        max-width: calc(100% - 28px);
        box-sizing: border-box;
        overflow-x: hidden;
    }
}

/* ===============================
   GAMEVO Auth Buttons Navbar Fix
   =============================== */

.auth-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-link,
.register-link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 9px;
    padding: 9px 16px;
    transition: 0.25s ease;
}

.login-link {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 245, 255, 0.28);
}

.login-link:hover {
    color: #00f5ff;
    background: rgba(0, 245, 255, 0.08);
    border-color: rgba(0, 245, 255, 0.55);
}

.register-link {
    color: #00110f !important;
    background: linear-gradient(135deg, #00f5ff, #00ff99) !important;
    border: 1px solid rgba(0, 245, 255, 0.55) !important;
    box-shadow: 0 0 16px rgba(0, 245, 255, 0.18);
}

.register-link:hover {
    color: #00110f !important;
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(0, 255, 153, 0.28);
}

@media (max-width: 768px) {
    .auth-menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .login-link,
    .register-link {
        width: 100%;
        text-align: center;
        display: block;
    }
}
