/**
 * PlushPH - Mobile Gaming Platform
 * CSS Theme File
 * All classes use prefix: s118-
 */

/* CSS Variables */
:root {
    --s118-primary: #87CEFA;
    --s118-secondary: #AFEEEE;
    --s118-accent: #E0FFFF;
    --s118-muted: #C0C0C0;
    --s118-bg: #0E1621;
    --s118-bg-light: #1a2533;
    --s118-text: #E0FFFF;
    --s118-text-dark: #AFEEEE;
    --s118-border: rgba(135, 206, 250, 0.3);
    --s118-gradient: linear-gradient(135deg, #0E1621 0%, #1a2533 100%);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--s118-bg);
    color: var(--s118-text);
    line-height: 1.5rem;
    min-height: 100vh;
}

/* Container */
.s118-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header Styles */
.s118-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--s118-bg);
    border-bottom: 1px solid var(--s118-border);
    z-index: 1000;
    padding: 0.8rem 0;
}

.s118-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.2rem;
    max-width: 430px;
    margin: 0 auto;
}

.s118-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.s118-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.s118-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s118-primary);
}

.s118-header-btns {
    display: flex;
    gap: 0.6rem;
}

.s118-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.s118-btn-primary {
    background: var(--s118-primary);
    color: var(--s118-bg);
}

.s118-btn-primary:hover {
    background: #6BB8E8;
    transform: translateY(-1px);
}

.s118-btn-secondary {
    background: transparent;
    color: var(--s118-primary);
    border: 1px solid var(--s118-primary);
}

.s118-btn-secondary:hover {
    background: rgba(135, 206, 250, 0.1);
}

.s118-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--s118-text);
    cursor: pointer;
    font-size: 2rem;
}

/* Mobile Menu */
.s118-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s118-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.s118-menu-active {
    right: 0;
}

.s118-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: all 0.3s ease;
}

.s118-overlay-active {
    opacity: 1;
    visibility: visible;
}

.s118-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--s118-text);
    font-size: 2rem;
    cursor: pointer;
}

.s118-menu-links {
    margin-top: 3rem;
    list-style: none;
}

.s118-menu-links li {
    margin-bottom: 1rem;
}

.s118-menu-links a {
    display: block;
    padding: 1rem;
    color: var(--s118-text);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.s118-menu-links a:hover {
    background: rgba(135, 206, 250, 0.1);
    color: var(--s118-primary);
}

/* Main Content */
main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Carousel */
.s118-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.s118-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.s118-slide {
    min-width: 100%;
    display: none;
    cursor: pointer;
}

.s118-slide-active {
    display: block;
}

.s118-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.s118-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.s118-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--s118-muted);
    cursor: pointer;
    transition: background 0.3s ease;
}

.s118-dot-active {
    background: var(--s118-primary);
}

/* Section Styles */
.s118-section {
    padding: 1.5rem 0;
}

.s118-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s118-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--s118-border);
}

/* Game Grid */
.s118-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.s118-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem;
    background: var(--s118-bg-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.s118-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 206, 250, 0.2);
}

.s118-game-card img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 6px;
    object-fit: cover;
}

.s118-game-name {
    font-size: 1rem;
    color: var(--s118-text);
    text-align: center;
    margin-top: 0.4rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Title */
.s118-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s118-secondary);
    margin: 1.5rem 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Info Cards */
.s118-info-card {
    background: var(--s118-bg-light);
    border-radius: 12px;
    padding: 1.2rem;
    margin: 1rem 0;
    border: 1px solid var(--s118-border);
}

.s118-info-card h3 {
    font-size: 1.4rem;
    color: var(--s118-primary);
    margin-bottom: 0.8rem;
}

.s118-info-card p {
    font-size: 1.2rem;
    color: var(--s118-text);
    line-height: 1.6;
}

.s118-info-card ul {
    list-style: none;
    padding-left: 0;
}

.s118-info-card li {
    font-size: 1.2rem;
    color: var(--s118-text);
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.s118-info-card li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--s118-primary);
}

/* Promo Link Styles */
.s118-promo-link {
    color: var(--s118-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.s118-promo-link:hover {
    color: var(--s118-secondary);
}

/* Footer */
.s118-footer {
    background: var(--s118-bg-light);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--s118-border);
}

.s118-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.s118-footer-links a {
    color: var(--s118-text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.s118-footer-links a:hover {
    color: var(--s118-primary);
    background: rgba(135, 206, 250, 0.1);
}

.s118-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.s118-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.s118-partners img:hover {
    opacity: 1;
}

.s118-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--s118-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--s118-border);
}

/* Bottom Navigation */
.s118-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--s118-bg);
    border-top: 1px solid var(--s118-border);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    height: 60px;
}

.s118-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    background: transparent;
    border: none;
    color: var(--s118-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.2rem;
}

.s118-nav-btn:hover,
.s118-nav-btn-active {
    color: var(--s118-primary);
}

.s118-nav-btn i,
.s118-nav-btn span.iconify {
    font-size: 22px;
}

.s118-nav-btn span {
    font-size: 1rem;
}

/* Desktop Hide Bottom Nav */
@media (min-width: 769px) {
    .s118-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }
}

/* Mobile Responsive */
@media (max-width: 430px) {
    .s118-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.6rem;
    }

    .s118-game-name {
        font-size: 0.9rem;
    }
}

/* H1 Title */
.s118-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s118-primary);
    text-align: center;
    margin: 1.5rem 0;
    line-height: 1.4;
}

/* Promo Button Large */
.s118-promo-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--s118-primary), var(--s118-secondary));
    color: var(--s118-bg);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
}

.s118-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(135, 206, 250, 0.4);
}

/* Text Content */
.s118-text-content {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--s118-text);
}

.s118-text-content p {
    margin-bottom: 1rem;
}

/* FAQ Styles */
.s118-faq-item {
    background: var(--s118-bg-light);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.8rem;
}

.s118-faq-item h4 {
    font-size: 1.3rem;
    color: var(--s118-primary);
    margin-bottom: 0.5rem;
}

.s118-faq-item p {
    font-size: 1.2rem;
    color: var(--s118-text);
    line-height: 1.5;
}

/* Feature List */
.s118-feature-list {
    display: grid;
    gap: 0.8rem;
}

.s118-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--s118-bg-light);
    border-radius: 8px;
}

.s118-feature-item i {
    color: var(--s118-primary);
    font-size: 1.8rem;
    flex-shrink: 0;
}

.s118-feature-item div {
    font-size: 1.2rem;
    color: var(--s118-text);
}

/* Desktop Styles */
@media (min-width: 769px) {
    .s118-container {
        max-width: 600px;
    }

    .s118-header-content {
        max-width: 600px;
    }
}
