/* 789VIN - Universal CSS Styles for Mobile-First Gaming Website */
/* Base Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #E6E6FA;
    background: linear-gradient(135deg, #212F3D 0%, #1A252F 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Color Palette Variables */
:root {
    --primary-gray: #A9A9A9;
    --primary-lavender: #E6E6FA;
    --primary-purple: #6A5ACD;
    --primary-dark: #212F3D;
    --primary-magenta: #EE82EE;
    --accent-gold: #FFD700;
    --success-green: #28a745;
    --warning-orange: #ff6b35;
    --gradient-bg: linear-gradient(135deg, #212F3D 0%, #1A252F 100%);
    --gradient-purple: linear-gradient(135deg, #6A5ACD 0%, #EE82EE 100%);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(33, 47, 61, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-purple);
    padding: 1rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-lavender);
}

.logo-img {
    width: 3.2rem;
    height: 3.2rem;
    margin-right: 0.8rem;
}

.site-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-magenta);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-register,
.btn-login {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-register {
    background: var(--gradient-purple);
    color: white;
}

.btn-login {
    background: transparent;
    color: var(--primary-lavender);
    border: 1px solid var(--primary-purple);
}

.btn-register:hover,
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 90, 205, 0.3);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-lavender);
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(33, 47, 61, 0.98);
    backdrop-filter: blur(15px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid var(--primary-purple);
}

.mobile-nav-menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid rgba(106, 90, 205, 0.2);
}

.mobile-nav-menu a {
    display: block;
    padding: 1.2rem 2rem;
    color: var(--primary-lavender);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
    background: rgba(106, 90, 205, 0.1);
    color: var(--primary-magenta);
}

/* Main Content */
.main-content {
    margin-top: 8rem;
    padding: 2rem 1rem;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 20rem;
    position: relative;
    cursor: pointer;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem 1.5rem 1.5rem;
    color: white;
}

/* Page Title */
.page-title {
    font-size: 2.4rem;
    font-weight: bold;
    text-align: center;
    margin: 2rem 0;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Game Grid */
.game-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--primary-magenta);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    background: rgba(106, 90, 205, 0.1);
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.game-item:hover {
    transform: translateY(-3px);
    background: rgba(106, 90, 205, 0.2);
    border-color: var(--primary-purple);
    box-shadow: 0 8px 25px rgba(106, 90, 205, 0.3);
}

.game-icon {
    width: 100%;
    max-width: 6rem;
    height: 6rem;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.8rem;
}

.game-name {
    font-size: 1.1rem;
    color: var(--primary-lavender);
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Modules */
.content-module {
    background: rgba(169, 169, 169, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(106, 90, 205, 0.2);
}

.module-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--primary-magenta);
}

.module-content {
    line-height: 1.6;
    color: var(--primary-lavender);
}

.module-content p {
    margin-bottom: 1rem;
}

/* Promotional Links */
.promo-link {
    display: inline-block;
    background: var(--gradient-purple);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: bold;
    margin: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.4rem;
    min-width: 44px;
    min-height: 44px;
    text-align: center;
}

.promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 90, 205, 0.4);
}

.promo-text {
    color: var(--primary-magenta);
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    margin: 0.5rem;
}

.promo-text:hover {
    color: var(--accent-gold);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    padding: 3rem 1rem 10rem;
    margin-top: 4rem;
    border-top: 2px solid var(--primary-purple);
}

.footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--primary-lavender);
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(106, 90, 205, 0.2);
}

.footer-links a:hover {
    background: rgba(106, 90, 205, 0.1);
    color: var(--primary-magenta);
}

.partners-section {
    margin: 2rem 0;
    text-align: center;
}

.partners-title {
    font-size: 1.4rem;
    color: var(--primary-gray);
    margin-bottom: 1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.partner-logo {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.copyright {
    text-align: center;
    color: var(--primary-gray);
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(33, 47, 61, 0.95);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--primary-purple);
    padding: 1rem;
    z-index: 1000;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary-lavender);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
}

.bottom-nav-item:hover {
    color: var(--primary-magenta);
    background: rgba(106, 90, 205, 0.1);
}

.bottom-nav-icon {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 360px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .game-icon {
        max-width: 5rem;
        height: 5rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 431px) {
    .main-content,
    .header-container,
    .footer-content,
    .bottom-nav-container {
        max-width: 430px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-module {
    animation: fadeIn 0.6s ease-out;
}

/* Lazy Loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy.loaded {
    opacity: 1;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.show {
    display: block;
} 