/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1A1A1A 0%, #495057 100%);
    color: #FFB74D;
    line-height: 1.5;
    min-height: 100vh;
    font-size: 1.4rem;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-color: #4DB6AC;
    --secondary-color: #FF4500;
    --accent-color: #FF9500;
    --text-color: #FFB74D;
    --bg-dark: #1A1A1A;
    --bg-medium: #495057;
    --white: #ffffff;
    --border-radius: 0.8rem;
}

/* Header Styles */
header {
    background: linear-gradient(90deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border-bottom: 2px solid var(--primary-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 43rem;
    margin: 0 auto;
}

.logo-section {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
}

.logo-section img {
    width: 2.4rem;
    height: 2.4rem;
    margin-right: 0.8rem;
    border-radius: 0.4rem;
}

.site-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-register,
.btn-login {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    border: none;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 4.4rem;
    text-align: center;
    cursor: pointer;
}

.btn-register:hover,
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
}

.mobile-menu-icon {
    font-size: 2.4rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
}

.mobile-menu-icon:hover {
    background: rgba(77, 182, 172, 0.1);
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.mobile-nav ul {
    list-style: none;
    padding: 1rem;
}

.mobile-nav li {
    margin-bottom: 0.5rem;
}

.mobile-nav a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.mobile-nav a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(0.5rem);
}

/* Main Content */
main {
    margin-top: 7rem;
    padding: 2rem 1rem 10rem;
    max-width: 43rem;
    margin-left: auto;
    margin-right: auto;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    margin-bottom: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.carousel-slide {
    width: 100%;
    height: 20rem;
    display: none;
    cursor: pointer;
}

.carousel-slide:first-child {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Page Title */
.page-title {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin: 2rem 0 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Game Section Styles */
.game-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-item {
    background: linear-gradient(135deg, var(--bg-medium) 0%, var(--bg-dark) 100%);
    border-radius: var(--border-radius);
    padding: 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    min-height: 4.4rem;
}

.game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(77, 182, 172, 0.3);
    border-color: var(--primary-color);
}

.game-item img {
    width: 4rem;
    height: 4rem;
    border-radius: 0.4rem;
    margin-bottom: 0.5rem;
    object-fit: cover;
}

.game-item .game-name {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Module Styles */
.content-module {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(73, 80, 87, 0.9) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.module-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.module-content {
    color: var(--text-color);
    line-height: 1.6;
}

.module-content p {
    margin-bottom: 1rem;
}

.module-content ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.module-content li {
    margin-bottom: 0.5rem;
}

/* Promotional Links */
.promo-link {
    display: inline-block;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: bold;
    margin: 0.5rem 0.5rem 0.5rem 0;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.3rem;
}

.promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.4);
}

.promo-btn {
    background: linear-gradient(45deg, var(--primary-color), #4DB6AC);
    color: var(--white);
    border: none;
    padding: 1.2rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin: 2rem 0;
    text-align: center;
    text-decoration: none;
}

.promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(77, 182, 172, 0.4);
}

/* Footer Styles */
footer {
    background: var(--bg-dark);
    color: var(--text-color);
    padding: 3rem 1rem 12rem;
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    max-width: 43rem;
    margin: 0 auto;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.8rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-size: 1.3rem;
    text-align: center;
    background: rgba(77, 182, 172, 0.1);
}

.footer-links a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.partners-section {
    margin: 3rem 0;
    text-align: center;
}

.partners-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    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;
    border-radius: 0.4rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.footer-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    padding-top: 2rem;
    border-top: 1px solid var(--bg-medium);
}

/* Fixed Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    border-top: 2px solid var(--primary-color);
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 0;
    max-width: 43rem;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 4.4rem;
    padding: 0.5rem;
}

.bottom-nav-item:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.bottom-nav-item i {
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.bottom-nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (min-width: 375px) {
    .games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 414px) {
    html {
        font-size: 65%;
    }
    
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Loading and Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(2rem); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-bold { font-weight: bold; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Print Styles */
@media print {
    .bottom-nav,
    header,
    .promo-link,
    .promo-btn {
        display: none !important;
    }
} 