/**
 * PH365 Website CSS Styles
 * All classes use s857- prefix for namespace isolation
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --s857-primary: #FF9800;
    --s857-secondary: #9AFF9A;
    --s857-bg-dark: #1C2833;
    --s857-bg-medium: #696969;
    --s857-text-light: #ECF0F1;
    --s857-accent: #FF9800;
    --s857-success: #9AFF9A;
    --s857-gradient: linear-gradient(135deg, #1C2833 0%, #696969 100%);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--s857-bg-dark);
    color: var(--s857-text-light);
    line-height: 1.5;
    min-height: 100vh;
}

/* Container */
.s857-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.s857-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--s857-bg-dark);
    border-bottom: 1px solid var(--s857-bg-medium);
    padding: 1rem 1.5rem;
}

.s857-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.s857-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.s857-logo img {
    width: 32px;
    height: 32px;
}

.s857-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s857-primary);
}

.s857-header-btns {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s857-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: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s857-btn-primary {
    background: var(--s857-primary);
    color: var(--s857-bg-dark);
}

.s857-btn-primary:hover {
    background: #e68900;
    transform: scale(1.05);
}

.s857-btn-secondary {
    background: transparent;
    color: var(--s857-text-light);
    border: 1px solid var(--s857-primary);
}

.s857-btn-secondary:hover {
    background: var(--s857-primary);
    color: var(--s857-bg-dark);
}

.s857-menu-btn {
    background: none;
    border: none;
    color: var(--s857-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.s857-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s857-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.web576-menu-active {
    right: 0;
}

.s857-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;
}

.web576-overlay-active {
    opacity: 1;
    visibility: visible;
}

.s857-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--s857-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.s857-menu-nav {
    margin-top: 3rem;
}

.s857-menu-link {
    display: block;
    padding: 1.2rem 0;
    color: var(--s857-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--s857-bg-medium);
    transition: color 0.3s ease;
}

.s857-menu-link:hover {
    color: var(--s857-primary);
}

/* Main Content */
.s857-main {
    padding-top: 6rem;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .s857-main {
        padding-bottom: 8rem;
    }
}

/* Carousel Styles */
.s857-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.s857-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.s857-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.web576-slide-active {
    opacity: 1;
}

.s857-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s857-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.s857-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.web576-dot-active {
    background: var(--s857-primary);
}

/* Section Styles */
.s857-section {
    padding: 2rem 0;
}

.s857-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s857-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.s857-section-subtitle {
    font-size: 1.4rem;
    color: var(--s857-text-light);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.s857-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.s857-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s857-game-card:hover {
    transform: scale(1.05);
}

.s857-game-img {
    width: 6rem;
    height: 6rem;
    border-radius: 1rem;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--s857-bg-medium);
}

.s857-game-name {
    font-size: 1rem;
    color: var(--s857-text-light);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Category Badge */
.s857-category-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--s857-bg-dark);
    background: var(--s857-secondary);
    border-radius: 2rem;
    margin-bottom: 1rem;
}

/* Content Card */
.s857-card {
    background: var(--s857-bg-medium);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.s857-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s857-primary);
    margin-bottom: 1rem;
}

.s857-card-text {
    font-size: 1.3rem;
    color: var(--s857-text-light);
    line-height: 1.6;
}

/* Footer */
.s857-footer {
    background: var(--s857-bg-dark);
    border-top: 1px solid var(--s857-bg-medium);
    padding: 2rem 1.5rem;
    padding-bottom: 8rem;
}

@media (min-width: 769px) {
    .s857-footer {
        padding-bottom: 2rem;
    }
}

.s857-footer-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s857-primary);
    margin-bottom: 1rem;
}

.s857-footer-text {
    font-size: 1.2rem;
    color: var(--s857-text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.s857-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s857-footer-link {
    color: var(--s857-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.s857-footer-link:hover {
    color: var(--s857-primary);
}

.s857-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s857-partner-img {
    width: 4rem;
    height: 2rem;
    object-fit: contain;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.s857-partner-img:hover {
    filter: grayscale(0%);
}

.s857-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--s857-bg-medium);
    margin-top: 1.5rem;
}

/* Bottom Navigation */
.s857-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--s857-bg-dark);
    border-top: 1px solid var(--s857-bg-medium);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

@media (min-width: 769px) {
    .s857-bottom-nav {
        display: none;
    }
}

.s857-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s857-nav-item:hover {
    transform: scale(1.1);
}

.s857-nav-item.active {
    color: var(--s857-primary);
}

.s857-nav-icon {
    font-size: 2.4rem;
    color: var(--s857-text-light);
    margin-bottom: 0.2rem;
    transition: color 0.3s ease;
}

.s857-nav-item:hover .s857-nav-icon,
.s857-nav-item.active .s857-nav-icon {
    color: var(--s857-primary);
}

.s857-nav-text {
    font-size: 1rem;
    color: var(--s857-text-light);
    transition: color 0.3s ease;
}

.s857-nav-item:hover .s857-nav-text,
.s857-nav-item.active .s857-nav-text {
    color: var(--s857-primary);
}

/* Promo Link Styles */
.s857-promo-link {
    display: inline-block;
    color: var(--s857-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s857-promo-link:hover {
    color: var(--s857-secondary);
    text-decoration: underline;
}

.s857-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--s857-primary);
    color: var(--s857-bg-dark);
    font-size: 1.4rem;
    font-weight: 700;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s857-promo-btn:hover {
    background: var(--s857-secondary);
    transform: scale(1.05);
}

/* FAQ Styles */
.s857-faq-item {
    background: var(--s857-bg-medium);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.s857-faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--s857-primary);
    cursor: pointer;
}

.s857-faq-answer {
    padding: 0 1.5rem 1.2rem;
    font-size: 1.2rem;
    color: var(--s857-text-light);
    line-height: 1.6;
}

/* Feature List */
.s857-feature-list {
    list-style: none;
    padding: 0;
}

.s857-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.s857-feature-icon {
    font-size: 2rem;
    color: var(--s857-primary);
    flex-shrink: 0;
}

.s857-feature-text {
    font-size: 1.3rem;
    color: var(--s857-text-light);
    line-height: 1.5;
}

/* Responsive Utilities */
@media (max-width: 430px) {
    .s857-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .s857-game-img {
        width: 5rem;
        height: 5rem;
    }

    .s857-game-name {
        font-size: 0.9rem;
    }
}

/* Typography */
.s857-h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--s857-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.s857-h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--s857-primary);
    margin-bottom: 1rem;
}

.s857-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--s857-text-light);
    margin-bottom: 0.8rem;
}

.s857-text {
    font-size: 1.3rem;
    color: var(--s857-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* List Styles */
.s857-list {
    list-style: none;
    padding-left: 0;
}

.s857-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    color: var(--s857-text-light);
}

.s857-list li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--s857-primary);
}

/* Utility Classes */
.s857-text-center {
    text-align: center;
}

.s857-mb-1 {
    margin-bottom: 1rem;
}

.s857-mb-2 {
    margin-bottom: 2rem;
}

.s857-mt-2 {
    margin-top: 2rem;
}

.s857-hidden {
    display: none;
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .s857-header-inner {
        max-width: 1200px;
    }

    .s857-container {
        max-width: 1200px;
    }

    .s857-game-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}
