/* 68wim Mobile-First Responsive CSS */
/* Color Palette: #FFFFFF | #D2B48C | #A0522D | #2E4057 | #FFE4B5 | #ADD8E6 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    line-height: 1.5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5rem;
    color: #FFFFFF;
    background: linear-gradient(135deg, #2E4057 0%, #A0522D 100%);
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(46, 64, 87, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #FFFFFF;
}

.logo {
    width: 2.4rem;
    height: 2.4rem;
    margin-right: 0.8rem;
}

.site-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: #D2B48C;
}

.auth-buttons {
    display: flex;
    gap: 0.8rem;
}

.btn-auth {
    padding: 0.6rem 1.2rem;
    border: 1px solid #D2B48C;
    border-radius: 0.4rem;
    background: transparent;
    color: #D2B48C;
    text-decoration: none;
    font-size: 1.2rem;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.btn-auth:hover {
    background: #D2B48C;
    color: #2E4057;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    width: 2.4rem;
    height: 2.4rem;
    cursor: pointer;
    padding: 0.2rem;
}

.hamburger-line {
    width: 100%;
    height: 0.3rem;
    background: #D2B48C;
    margin: 0.2rem 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-0.5rem, 0.6rem);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-0.5rem, -0.6rem);
}

/* Mobile Navigation Menu */
.mobile-menu {
    position: fixed;
    top: 6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(46, 64, 87, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 50rem;
}

.mobile-menu ul {
    list-style: none;
    padding: 1rem;
}

.mobile-menu li {
    margin: 0.8rem 0;
}

.mobile-menu a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    padding: 1rem;
    border-radius: 0.4rem;
    transition: background 0.3s;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
}

.mobile-menu a:hover {
    background: rgba(210, 180, 140, 0.2);
}

/* Main Content */
.main-content {
    margin-top: 6rem;
    padding: 2rem 1rem 8rem;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 0.8rem;
    overflow: hidden;
    height: 20rem;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    display: none;
    cursor: pointer;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide:first-child {
    display: block;
}

/* Typography */
h1 {
    font-size: 2.4rem;
    color: #D2B48C;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
}

h2 {
    font-size: 2rem;
    color: #D2B48C;
    margin: 2rem 0 1rem;
}

h3 {
    font-size: 1.6rem;
    color: #FFE4B5;
    margin: 1.5rem 0 1rem;
}

p {
    margin-bottom: 1rem;
    color: #FFFFFF;
}

/* Game Grid */
.game-section {
    margin-bottom: 3rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem;
    border-radius: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(210, 180, 140, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 4.4rem;
}

.game-item:hover {
    background: rgba(210, 180, 140, 0.2);
    border-color: #D2B48C;
    transform: translateY(-0.2rem);
}

.game-item img {
    width: 4rem;
    height: 4rem;
    border-radius: 0.4rem;
    margin-bottom: 0.5rem;
}

.game-item span {
    font-size: 1rem;
    text-align: center;
    color: #FFFFFF;
    line-height: 1.2;
}

/* Promotional Links */
.promo-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #D2B48C, #A0522D);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 0.6rem;
    font-weight: bold;
    margin: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 4.4rem;
    line-height: 1.2;
    text-align: center;
}

.promo-link:hover {
    background: linear-gradient(45deg, #A0522D, #D2B48C);
    transform: translateY(-0.2rem);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.promo-text {
    color: #D2B48C;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
}

/* Content Modules */
.content-module {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(210, 180, 140, 0.2);
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.module-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.6rem;
    text-align: center;
}

/* Footer */
.footer {
    background: rgba(46, 64, 87, 0.95);
    padding: 2rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: #D2B48C;
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin: 2rem 0;
}

.partner-logo {
    width: 100%;
    height: 3rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.partner-logo:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    color: #ADD8E6;
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(46, 64, 87, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 998;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #D2B48C;
    text-decoration: none;
    font-size: 1rem;
    min-width: 4.4rem;
    min-height: 4.4rem;
    padding: 0.5rem;
    cursor: pointer;
}

.bottom-nav-item i {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.bottom-nav-item:hover {
    color: #FFFFFF;
}

/* Responsive Design */
@media (min-width: 375px) {
    .game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 414px) {
    html {
        font-size: 65%;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 2s infinite;
}

/* Focus and Accessibility */
button:focus,
a:focus,
.game-item:focus,
.promo-link:focus {
    outline: 2px solid #D2B48C;
    outline-offset: 2px;
}

/* Touch-friendly sizing */
@media (pointer: coarse) {
    .game-item,
    .promo-link,
    .btn-auth,
    .bottom-nav-item {
        min-height: 4.8rem;
        min-width: 4.8rem;
    }
} 