/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    background: linear-gradient(135deg, #1A1A2E 0%, #2F2F2F 100%);
    color: #FFFFBA;
    min-height: 100vh;
}

/* Color variables */
:root {
    --primary-dark: #1A1A2E;
    --secondary-dark: #2F2F2F;
    --accent-red: #DC143C;
    --text-light: #FFFFBA;
    --text-gray: #708090;
    --border-color: rgba(220, 20, 60, 0.3);
    --gradient-bg: linear-gradient(135deg, #1A1A2E 0%, #2F2F2F 100%);
}

/* Container and layout */
.container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-section img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.5rem;
}

.site-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-red);
    text-decoration: none;
}

.header-buttons {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.btn-header {
    padding: 0.6rem 1.2rem;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
}

.btn-header:hover {
    background: #B91C3C;
    transform: translateY(-1px);
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile navigation */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--border-color);
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-nav:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav a {
    display: block;
    padding: 1.5rem 2rem;
    color: var(--text-light);
    text-decoration: none;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.mobile-nav a:hover {
    background: var(--accent-red);
    color: white;
}

/* Main content */
.main {
    margin-top: 8rem;
    padding-bottom: 10rem;
}

/* Carousel styles */
.carousel {
    position: relative;
    margin: 2rem 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.2);
}

.carousel-slide {
    position: relative;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1.5rem 1rem;
    color: white;
}

/* Section styles */
.section {
    margin: 3rem 0;
    padding: 2rem 1.5rem;
    background: rgba(47, 47, 47, 0.3);
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-content {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Game grid */
.game-category {
    margin: 3rem 0;
}

.category-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    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(47, 47, 47, 0.5);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
    background: rgba(220, 20, 60, 0.1);
}

.game-item img {
    width: 100%;
    height: 6rem;
    object-fit: cover;
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
}

.game-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Promotional elements */
.promo-link, .promo-btn {
    color: var(--accent-red) !important;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.promo-link:hover, .promo-btn:hover {
    color: #B91C3C !important;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

.promo-btn {
    display: inline-block;
    padding: 1.2rem 2rem;
    background: linear-gradient(45deg, var(--accent-red), #B91C3C);
    color: white !important;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    border: none;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

/* Footer styles */
.footer {
    background: var(--primary-dark);
    border-top: 2px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 1rem;
    background: rgba(47, 47, 47, 0.3);
    border-radius: 0.8rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.footer-links a:hover {
    background: var(--accent-red);
    color: white;
}

.partners {
    margin: 2rem 0;
}

.partners-title {
    font-size: 1.4rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.partner-logo {
    width: 100%;
    height: 4rem;
    object-fit: contain;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
}

.copyright {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.8rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    justify-content: center;
}

.nav-item:hover {
    color: var(--accent-red);
    background: rgba(220, 20, 60, 0.1);
}

.nav-item i {
    font-size: 2rem;
}

.nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    width: 5rem;
    height: 5rem;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

/* Utility classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.py-2 { padding: 2rem 0; }
.px-2 { padding: 0 2rem; }

/* Responsive adjustments */
@media (max-width: 375px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 431px) {
    .container, .header-content, .footer-content {
        max-width: 430px;
    }
} 