/**
 * Phjion Gaming Platform - Theme Styles
 * Website: phjion.click
 * CSS Class Prefix: s4c8-
 * Colors: #696969 | #D2B48C | #F4A460 | #FFE4B5 | #333333
 */

/* CSS Variables */
:root {
    --s4c8-primary: #D2B48C;
    --s4c8-secondary: #F4A460;
    --s4c8-accent: #FFE4B5;
    --s4c8-bg: #333333;
    --s4c8-text: #696969;
    --s4c8-light: #FFE4B5;
    --s4c8-dark: #333333;
    --s4c8-header-height: 60px;
    --s4c8-nav-height: 64px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--s4c8-bg);
    color: var(--s4c8-light);
    line-height: 1.5;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
}

/* Header */
.s4c8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--s4c8-dark) 0%, #4a4a4a 100%);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.s4c8-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    height: var(--s4c8-header-height);
}

.s4c8-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.s4c8-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.s4c8-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s4c8-primary);
}

.s4c8-logo-text span {
    color: var(--s4c8-secondary);
}

.s4c8-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.s4c8-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s4c8-btn-login {
    background: transparent;
    border: 2px solid var(--s4c8-primary);
    color: var(--s4c8-primary);
}

.s4c8-btn-login:hover {
    background: var(--s4c8-primary);
    color: var(--s4c8-dark);
}

.s4c8-btn-register {
    background: linear-gradient(135deg, var(--s4c8-primary) 0%, var(--s4c8-secondary) 100%);
    color: var(--s4c8-dark);
}

.s4c8-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 180, 140, 0.4);
}

.s4c8-menu-toggle {
    background: transparent;
    border: none;
    color: var(--s4c8-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Menu */
.s4c8-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--s4c8-dark) 0%, #2a2a2a 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.s4c8-menu-active {
    right: 0;
}

.s4c8-mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--s4c8-light);
    font-size: 2.4rem;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
}

.s4c8-mobile-nav-list {
    list-style: none;
    margin-top: 50px;
}

.s4c8-mobile-nav-item {
    margin-bottom: 5px;
}

.s4c8-mobile-nav-link {
    display: block;
    padding: 12px 15px;
    color: var(--s4c8-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.s4c8-mobile-nav-link:hover {
    background: rgba(210, 180, 140, 0.2);
    color: var(--s4c8-primary);
}

.s4c8-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.s4c8-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.s4c8-main {
    padding-top: calc(var(--s4c8-header-height) + 10px);
    padding-bottom: calc(var(--s4c8-nav-height) + 20px);
    min-height: 100vh;
}

@media (min-width: 769px) {
    .s4c8-main {
        padding-bottom: 20px;
    }
}

/* Page Header */
.s4c8-page-header {
    background: linear-gradient(135deg, var(--s4c8-dark) 0%, #4a4a4a 100%);
    padding: 20px 15px;
    text-align: center;
}

.s4c8-page-title {
    font-size: 2rem;
    color: var(--s4c8-primary);
    margin-bottom: 8px;
}

.s4c8-page-breadcrumb {
    font-size: 1.2rem;
    color: var(--s4c8-accent);
}

.s4c8-breadcrumb-link {
    color: var(--s4c8-secondary);
    text-decoration: none;
}

/* Slider */
.s4c8-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.s4c8-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.s4c8-slide-active {
    opacity: 1;
}

.s4c8-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Section Styles */
.s4c8-section {
    padding: 20px 15px;
}

.s4c8-section-title {
    font-size: 1.8rem;
    color: var(--s4c8-primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.s4c8-section-title i {
    color: var(--s4c8-secondary);
}

/* Game Grid */
.s4c8-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.s4c8-game-card {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s4c8-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(210, 180, 140, 0.2);
}

.s4c8-game-img-wrapper {
    aspect-ratio: 1;
    overflow: hidden;
}

.s4c8-game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s4c8-game-info {
    padding: 8px;
    text-align: center;
}

.s4c8-game-name {
    font-size: 1.1rem;
    color: var(--s4c8-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features */
.s4c8-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.s4c8-feature-card {
    background: linear-gradient(135deg, rgba(210,180,140,0.1) 0%, rgba(244,164,96,0.1) 100%);
    border: 1px solid rgba(210,180,140,0.3);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s4c8-feature-card:hover {
    background: linear-gradient(135deg, rgba(210,180,140,0.2) 0%, rgba(244,164,96,0.2) 100%);
    transform: scale(1.02);
}

.s4c8-feature-icon {
    font-size: 2.4rem;
    color: var(--s4c8-primary);
    margin-bottom: 8px;
}

.s4c8-feature-title {
    font-size: 1.4rem;
    color: var(--s4c8-light);
    margin-bottom: 4px;
}

.s4c8-feature-desc {
    font-size: 1.2rem;
    color: var(--s4c8-accent);
}

/* Help Section */
.s4c8-help-section {
    padding: 15px;
    background: rgba(0,0,0,0.2);
    margin: 10px 15px;
    border-radius: 12px;
}

.s4c8-help-title {
    font-size: 1.6rem;
    color: var(--s4c8-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.s4c8-help-content p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--s4c8-light);
}

.s4c8-help-link {
    color: var(--s4c8-secondary);
    text-decoration: none;
    font-weight: 600;
}

.s4c8-help-link:hover {
    text-decoration: underline;
}

/* Promo Banner */
.s4c8-promo-banner {
    background: linear-gradient(135deg, var(--s4c8-primary) 0%, var(--s4c8-secondary) 100%);
    padding: 20px 15px;
    margin: 15px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
}

.s4c8-promo-title {
    font-size: 1.8rem;
    color: var(--s4c8-dark);
    margin-bottom: 8px;
}

.s4c8-promo-desc {
    font-size: 1.3rem;
    color: #4a4a4a;
    margin-bottom: 12px;
}

/* Footer */
.s4c8-footer {
    background: var(--s4c8-dark);
    padding: 20px 15px;
    border-top: 1px solid rgba(210,180,140,0.2);
}

.s4c8-footer-inner {
    text-align: center;
}

.s4c8-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.s4c8-footer-link {
    color: var(--s4c8-accent);
    text-decoration: none;
    font-size: 1.3rem;
}

.s4c8-footer-link:hover {
    color: var(--s4c8-primary);
}

.s4c8-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.s4c8-partner-img {
    height: 24px;
    opacity: 0.7;
}

.s4c8-copyright {
    font-size: 1.2rem;
    color: var(--s4c8-text);
}

/* Bottom Navigation */
.s4c8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: var(--s4c8-nav-height);
    background: linear-gradient(180deg, #4a4a4a 0%, var(--s4c8-dark) 100%);
    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) {
    .s4c8-bottom-nav {
        display: none;
    }
}

.s4c8-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--s4c8-accent);
    transition: all 0.3s ease;
}

.s4c8-nav-item i,
.s4c8-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.s4c8-nav-item span {
    font-size: 1.1rem;
}

.s4c8-nav-item:hover,
.s4c8-nav-item-active {
    color: var(--s4c8-primary);
}

.s4c8-nav-item-active i,
.s4c8-nav-item-active .material-icons {
    transform: scale(1.1);
}

/* Category Title */
.s4c8-category-title {
    font-size: 1.5rem;
    color: var(--s4c8-secondary);
    padding: 10px 15px 5px;
    border-bottom: 2px solid var(--s4c8-primary);
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 350px) {
    .s4c8-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
