/**
 * PH4 Gaming Platform - Theme Stylesheet
 * All classes use prefix "s198-" for namespace isolation
 * Mobile-first responsive design
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --s198-primary: #00CED1;
    --s198-secondary: #D4AF37;
    --s198-accent: #00E5FF;
    --s198-warning: #FFA500;
    --s198-bg-dark: #1A1A1A;
    --s198-bg-card: #2A2A2A;
    --s198-text-light: #FFFFFF;
    --s198-text-muted: #B0B0B0;
    --s198-border: #3A3A3A;
    --s198-gradient: linear-gradient(135deg, #00CED1 0%, #00E5FF 100%);
    --s198-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    --s198-shadow: 0 4px 15px rgba(0, 206, 209, 0.3);
    --s198-radius: 8px;
    --s198-radius-lg: 12px;
}

/* Base Styles */
html {
    font-size: 62.5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--s198-bg-dark);
    color: var(--s198-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
}

/* Container */
.s198-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s198-wrapper {
    padding: 1rem 0;
}

/* Header Styles */
.s198-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1A1A1A 0%, #2A2A2A 100%);
    border-bottom: 1px solid var(--s198-border);
    z-index: 1000;
    padding: 0.8rem 0;
}

.s198-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

.s198-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.s198-logo img {
    width: 28px;
    height: 28px;
}

.s198-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s198-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.s198-header-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.s198-btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--s198-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.s198-btn-primary {
    background: var(--s198-gradient);
    color: var(--s198-bg-dark);
}

.s198-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--s198-shadow);
}

.s198-btn-secondary {
    background: transparent;
    border: 1px solid var(--s198-primary);
    color: var(--s198-primary);
}

.s198-btn-secondary:hover {
    background: var(--s198-primary);
    color: var(--s198-bg-dark);
}

.s198-btn-gold {
    background: var(--s198-gold-gradient);
    color: var(--s198-bg-dark);
}

.s198-btn-gold:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Hamburger Menu */
.s198-hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
    z-index: 10001;
}

.s198-hamburger span {
    width: 24px;
    height: 3px;
    background: var(--s198-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.s198-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.s198-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.s198-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.s198-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s198-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    border-left: 1px solid var(--s198-border);
    overflow-y: auto;
}

.proc41-menu-active {
    right: 0 !important;
}

.s198-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;
}

.proc41-overlay-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.s198-menu-list {
    list-style: none;
}

.s198-menu-item {
    border-bottom: 1px solid var(--s198-border);
}

.s198-menu-link {
    display: block;
    padding: 1.2rem 0;
    color: var(--s198-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.s198-menu-link:hover {
    color: var(--s198-primary);
}

.s198-menu-section-title {
    font-size: 1.2rem;
    color: var(--s198-text-muted);
    text-transform: uppercase;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

/* Main Content */
.s198-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .s198-main {
        padding-bottom: 2rem;
    }
}

/* Carousel/Slider */
.s198-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--s198-radius-lg);
    margin: 1rem 0;
}

.s198-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.s198-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.proc41-slide-active {
    opacity: 1;
}

.s198-slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.s198-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.s198-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.proc41-dot-active,
.s198-dot:hover {
    background: var(--s198-primary);
}

/* Section Styles */
.s198-section {
    padding: 1.5rem 0;
}

.s198-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s198-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.s198-section-title i {
    color: var(--s198-secondary);
}

/* Game Grid */
.s198-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.s198-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s198-game-item:hover {
    transform: scale(1.05);
}

.s198-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--s198-radius);
    object-fit: cover;
    border: 2px solid var(--s198-border);
    transition: border-color 0.3s ease;
}

.s198-game-item:hover .s198-game-img {
    border-color: var(--s198-primary);
}

.s198-game-name {
    font-size: 1rem;
    color: var(--s198-text-light);
    margin-top: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.s198-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--s198-primary);
}

.s198-category-icon {
    font-size: 1.6rem;
    color: var(--s198-secondary);
}

.s198-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--s198-text-light);
}

/* Card Styles */
.s198-card {
    background: var(--s198-bg-card);
    border-radius: var(--s198-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--s198-border);
}

.s198-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s198-primary);
    margin-bottom: 0.8rem;
}

.s198-card-text {
    font-size: 1.2rem;
    color: var(--s198-text-muted);
    line-height: 1.6;
}

/* Features List */
.s198-features-list {
    display: grid;
    gap: 0.8rem;
}

.s198-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.s198-feature-icon {
    width: 36px;
    height: 36px;
    background: var(--s198-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.s198-feature-icon i {
    color: var(--s198-bg-dark);
    font-size: 1.4rem;
}

.s198-feature-text h4 {
    font-size: 1.3rem;
    color: var(--s198-text-light);
    margin-bottom: 0.3rem;
}

.s198-feature-text p {
    font-size: 1.1rem;
    color: var(--s198-text-muted);
}

/* Footer */
.s198-footer {
    background: var(--s198-bg-card);
    border-top: 1px solid var(--s198-border);
    padding: 2rem 0;
    margin-top: 2rem;
}

.s198-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.s198-footer-link {
    color: var(--s198-text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.3rem 0.6rem;
    transition: color 0.3s ease;
}

.s198-footer-link:hover {
    color: var(--s198-primary);
}

.s198-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.s198-partner-img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: contain;
    background: var(--s198-bg-dark);
    padding: 2px;
}

.s198-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--s198-text-muted);
}

/* Bottom Navigation - Mobile */
.s198-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, #2A2A2A 0%, #1A1A1A 100%);
    border-top: 1px solid var(--s198-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .s198-bottom-nav {
        display: none;
    }
}

.s198-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.s198-bottom-nav-item i {
    font-size: 22px;
    color: var(--s198-text-muted);
    transition: color 0.3s ease;
}

.s198-bottom-nav-item span {
    font-size: 10px;
    color: var(--s198-text-muted);
    margin-top: 4px;
    transition: color 0.3s ease;
}

.s198-bottom-nav-item:hover i,
.s198-bottom-nav-item:hover span {
    color: var(--s198-primary);
}

.s198-nav-active i,
.s198-nav-active span {
    color: var(--s198-primary) !important;
}

/* Promo Banner */
.s198-promo-banner {
    background: var(--s198-gold-gradient);
    border-radius: var(--s198-radius-lg);
    padding: 1.2rem;
    text-align: center;
    margin: 1rem 0;
}

.s198-promo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--s198-bg-dark);
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.s198-faq-item {
    background: var(--s198-bg-card);
    border-radius: var(--s198-radius);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.s198-faq-question {
    padding: 1rem 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--s198-text-light);
    background: var(--s198-bg-card);
    border-left: 3px solid var(--s198-primary);
}

.s198-faq-answer {
    padding: 1rem 1.2rem;
    font-size: 1.2rem;
    color: var(--s198-text-muted);
    line-height: 1.6;
    border-top: 1px solid var(--s198-border);
}

/* Text Utilities */
.s198-text-primary { color: var(--s198-primary); }
.s198-text-gold { color: var(--s198-secondary); }
.s198-text-accent { color: var(--s198-accent); }
.s198-text-warning { color: var(--s198-warning); }
.s198-text-muted { color: var(--s198-text-muted); }

.s198-text-center { text-align: center; }
.s198-text-bold { font-weight: 700; }

/* Spacing Utilities */
.s198-mt-1 { margin-top: 0.5rem; }
.s198-mt-2 { margin-top: 1rem; }
.s198-mt-3 { margin-top: 1.5rem; }
.s198-mb-1 { margin-bottom: 0.5rem; }
.s198-mb-2 { margin-bottom: 1rem; }
.s198-mb-3 { margin-bottom: 1.5rem; }

/* Link Styles */
.s198-link {
    color: var(--s198-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.s198-link:hover {
    color: var(--s198-accent);
    text-decoration: underline;
}

/* Promo Link Styles */
.s198-promo-link {
    color: var(--s198-secondary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s198-promo-link:hover {
    color: var(--s198-warning);
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 360px) {
    .s198-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .s198-btn {
        padding: 0.5rem 0.8rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) {
    .s198-container {
        max-width: 768px;
    }

    .s198-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Animation Classes */
.s198-fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Touch Feedback */
.proc41-touch {
    transition: transform 0.1s ease;
}

.proc41-touch-active {
    transform: scale(0.95);
}
