/**
 * GTaya Main Stylesheet
 * Mobile-first responsive design
 * CSS Class Prefix: s0ce-
 */

/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --s0ce-primary: #880E4F;
    --s0ce-secondary: #20B2AA;
    --s0ce-accent: #8FBC8F;
    --s0ce-dark: #2E4057;
    --s0ce-darker: #006400;
    --s0ce-light: #f5f5f5;
    --s0ce-white: #ffffff;
    --s0ce-text: #e0e0e0;
    --s0ce-text-light: #b0b0b0;
    --s0ce-gradient: linear-gradient(135deg, var(--s0ce-primary) 0%, var(--s0ce-dark) 100%);
    --s0ce-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --s0ce-radius: 8px;
    --s0ce-transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    background-color: var(--s0ce-dark);
    color: var(--s0ce-text);
    overflow-x: hidden;
}

/* ========================================
   Layout Components
   ======================================== */
.s0ce-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s0ce-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.s0ce-grid {
    display: grid;
    gap: 1rem;
}

.s0ce-flex {
    display: flex;
    align-items: center;
}

/* ========================================
   Header Styles
   ======================================== */
.s0ce-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--s0ce-gradient);
    padding: 0.8rem 1rem;
    box-shadow: var(--s0ce-shadow);
    transition: var(--s0ce-transition);
}

.s0ce-header-scrolled {
    background: rgba(136, 14, 79, 0.98);
    padding: 0.6rem 1rem;
}

.s0ce-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.s0ce-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.s0ce-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.s0ce-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s0ce-white);
    letter-spacing: 1px;
}

.s0ce-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.s0ce-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: var(--s0ce-radius);
    cursor: pointer;
    transition: var(--s0ce-transition);
    text-decoration: none;
}

.s0ce-btn-primary {
    background: var(--s0ce-secondary);
    color: var(--s0ce-white);
}

.s0ce-btn-primary:hover {
    background: #1a9d96;
    transform: scale(1.05);
}

.s0ce-btn-outline {
    background: transparent;
    color: var(--s0ce-white);
    border: 2px solid var(--s0ce-secondary);
}

.s0ce-btn-outline:hover {
    background: var(--s0ce-secondary);
}

.s0ce-menu-toggle {
    background: none;
    border: none;
    color: var(--s0ce-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   Mobile Menu
   ======================================== */
.s0ce-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s0ce-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.s0ce-menu-active {
    right: 0;
}

.s0ce-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--s0ce-transition);
}

.s0ce-overlay-active {
    opacity: 1;
    visibility: visible;
}

.s0ce-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--s0ce-white);
    font-size: 2.4rem;
    cursor: pointer;
}

.s0ce-menu-nav {
    margin-top: 4rem;
}

.s0ce-menu-link {
    display: block;
    padding: 1.2rem 0;
    color: var(--s0ce-text);
    text-decoration: none;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--s0ce-transition);
}

.s0ce-menu-link:hover {
    color: var(--s0ce-secondary);
    padding-left: 1rem;
}

/* ========================================
   Main Content
   ======================================== */
.s0ce-main {
    flex: 1;
    padding-top: 60px;
}

@media (max-width: 768px) {
    .s0ce-main {
        padding-bottom: 80px;
    }
}

/* ========================================
   Carousel/Slider
   ======================================== */
.s0ce-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.s0ce-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.s0ce-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.s0ce-slide-active {
    opacity: 1;
    position: relative;
}

.s0ce-slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.s0ce-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.s0ce-slide-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--s0ce-transition);
}

.s0ce-indicator-active {
    background: var(--s0ce-secondary);
    transform: scale(1.2);
}

/* ========================================
   Section Styles
   ======================================== */
.s0ce-section {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.s0ce-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s0ce-white);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.s0ce-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--s0ce-secondary);
    margin: 0.8rem auto 0;
}

.s0ce-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--s0ce-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Game Grid
   ======================================== */
.s0ce-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.s0ce-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--s0ce-transition);
}

.s0ce-game-item:hover {
    transform: translateY(-3px);
}

.s0ce-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--s0ce-radius);
    object-fit: cover;
    margin-bottom: 0.4rem;
}

.s0ce-game-name {
    font-size: 1rem;
    color: var(--s0ce-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   Category Section
   ======================================== */
.s0ce-category-section {
    margin-bottom: 2rem;
}

.s0ce-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--s0ce-secondary);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--s0ce-secondary);
}

/* ========================================
   Footer Styles
   ======================================== */
.s0ce-footer {
    background: var(--s0ce-darker);
    padding: 2rem 1.5rem 1rem;
    margin-top: auto;
}

.s0ce-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.s0ce-footer-link {
    color: var(--s0ce-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--s0ce-transition);
}

.s0ce-footer-link:hover {
    color: var(--s0ce-secondary);
}

.s0ce-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.s0ce-partner-logo {
    width: 40px;
    height: 25px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--s0ce-transition);
}

.s0ce-partner-logo:hover {
    opacity: 1;
}

.s0ce-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--s0ce-text-light);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   Bottom Navigation (Mobile)
   ======================================== */
.s0ce-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--s0ce-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .s0ce-bottom-nav {
        display: none;
    }
}

.s0ce-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--s0ce-text);
    cursor: pointer;
    transition: var(--s0ce-transition);
}

.s0ce-nav-btn:hover,
.s0ce-nav-btn.active {
    color: var(--s0ce-secondary);
    transform: scale(1.1);
}

.s0ce-nav-btn i,
.s0ce-nav-btn .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}

.s0ce-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* ========================================
   Promotional Links
   ======================================== */
.s0ce-promo-link {
    color: var(--s0ce-secondary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--s0ce-transition);
}

.s0ce-promo-link:hover {
    color: var(--s0ce-accent);
    text-decoration: underline;
}

.s0ce-promo-btn {
    display: inline-block;
    background: var(--s0ce-secondary);
    color: var(--s0ce-white);
    padding: 1rem 2.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--s0ce-transition);
    text-align: center;
    border: none;
}

.s0ce-promo-btn:hover {
    background: var(--s0ce-accent);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(32, 178, 170, 0.4);
}

/* ========================================
   Content Typography
   ======================================== */
.s0ce-content {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--s0ce-text);
}

.s0ce-content p {
    margin-bottom: 1.2rem;
}

.s0ce-content h2 {
    font-size: 1.6rem;
    color: var(--s0ce-secondary);
    margin: 1.5rem 0 1rem;
}

.s0ce-content h3 {
    font-size: 1.4rem;
    color: var(--s0ce-accent);
    margin: 1.2rem 0 0.8rem;
}

.s0ce-content ul,
.s0ce-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.s0ce-content li {
    margin-bottom: 0.5rem;
}

/* ========================================
   Utility Classes
   ======================================== */
.s0ce-text-center {
    text-align: center;
}

.s0ce-text-primary {
    color: var(--s0ce-primary);
}

.s0ce-text-secondary {
    color: var(--s0ce-secondary);
}

.s0ce-mb-1 { margin-bottom: 1rem; }
.s0ce-mb-2 { margin-bottom: 2rem; }
.s0ce-mb-3 { margin-bottom: 3rem; }

.s0ce-py-1 { padding-top: 1rem; padding-bottom: 1rem; }
.s0ce-py-2 { padding-top: 2rem; padding-bottom: 2rem; }

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 380px) {
    .s0ce-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .s0ce-btn {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) {
    .s0ce-container {
        max-width: 600px;
    }

    .s0ce-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
