/**
 * phcash11.club - Main Stylesheet
 * CSS class prefix: s814-
 * Color palette: #2D2D2D (dark) | #FFB3BA (light accent)
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --s814-primary: #FFB3BA;
    --s814-primary-dark: #E89CA3;
    --s814-primary-light: #FFD4D8;
    --s814-bg: #2D2D2D;
    --s814-bg-light: #3D3D3D;
    --s814-bg-dark: #1D1D1D;
    --s814-text: #FFFFFF;
    --s814-text-muted: #B0B0B0;
    --s814-accent: #FFD700;
    --s814-success: #4CAF50;
    --s814-warning: #FF9800;
    --s814-danger: #F44336;
    --s814-card-bg: #353535;
    --s814-border: #4D4D4D;
    --s814-gradient: linear-gradient(135deg, #FFB3BA 0%, #FFD4D8 100%);
    --s814-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --s814-radius: 8px;
    --s814-radius-lg: 12px;
    --s814-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    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.6rem;
    line-height: 1.5;
    color: var(--s814-text);
    background-color: var(--s814-bg);
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    body {
        max-width: 100%;
    }
}

a {
    color: var(--s814-primary);
    text-decoration: none;
    transition: var(--s814-transition);
}

a:hover {
    color: var(--s814-primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.s814-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s814-wrapper {
    padding: 2rem 1.5rem;
}

/* Header */
.s814-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--s814-bg-dark);
    padding: 1rem 1.5rem;
    z-index: 1000;
    box-shadow: var(--s814-shadow);
    max-width: 430px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .s814-header {
        max-width: 100%;
    }
}

.s814-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.s814-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s814-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.s814-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s814-primary);
}

.s814-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s814-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: var(--s814-radius);
    cursor: pointer;
    transition: var(--s814-transition);
    border: none;
    min-height: 44px;
    min-width: 44px;
}

.s814-btn-primary {
    background: var(--s814-gradient);
    color: var(--s814-bg-dark);
}

.s814-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 179, 186, 0.4);
}

.s814-btn-outline {
    background: transparent;
    color: var(--s814-primary);
    border: 2px solid var(--s814-primary);
}

.s814-btn-outline:hover {
    background: var(--s814-primary);
    color: var(--s814-bg-dark);
}

/* Hamburger Menu */
.s814-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    cursor: pointer;
    z-index: 10001;
}

.s814-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--s814-primary);
    border-radius: 2px;
    transition: var(--s814-transition);
}

.app814-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.app814-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.app814-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.s814-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--s814-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 8rem 2rem 2rem;
    overflow-y: auto;
}

.app814-menu-active {
    right: 0;
}

.s814-mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.s814-mobile-menu li a {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--s814-text);
    font-size: 1.5rem;
    border-radius: var(--s814-radius);
    transition: var(--s814-transition);
}

.s814-mobile-menu li a:hover {
    background: var(--s814-bg-light);
    color: var(--s814-primary);
}

/* Menu Overlay */
.s814-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: var(--s814-transition);
}

.app814-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.s814-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .s814-main {
        padding-bottom: 2rem;
    }
}

/* Carousel/Banner */
.s814-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--s814-radius-lg) var(--s814-radius-lg);
}

.s814-slides {
    position: relative;
    width: 100%;
    height: 200px;
}

@media (min-width: 431px) {
    .s814-slides {
        height: 280px;
    }
}

.s814-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.app814-slide-active {
    opacity: 1;
}

.s814-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s814-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.s814-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--s814-transition);
}

.app814-dot-active {
    background: var(--s814-primary);
    transform: scale(1.2);
}

.s814-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--s814-transition);
}

.s814-carousel-arrow:hover {
    background: var(--s814-primary);
    color: var(--s814-bg-dark);
}

.s814-carousel-prev {
    left: 1rem;
}

.s814-carousel-next {
    right: 1rem;
}

/* Section Titles */
.s814-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s814-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--s814-primary);
}

.s814-section-subtitle {
    font-size: 1.6rem;
    color: var(--s814-text-muted);
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

/* Game Categories */
.s814-game-section {
    padding: 2rem 1.5rem;
}

.s814-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--s814-primary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s814-category-title i {
    font-size: 2.2rem;
}

/* Game Grid */
.s814-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 360px) {
    .s814-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
}

.s814-game-card {
    background: var(--s814-card-bg);
    border-radius: var(--s814-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--s814-transition);
    border: 1px solid var(--s814-border);
}

.s814-game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--s814-shadow);
    border-color: var(--s814-primary);
}

.s814-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.s814-game-name {
    padding: 0.6rem;
    font-size: 1.1rem;
    color: var(--s814-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--s814-bg-light);
}

/* Info Sections */
.s814-info-section {
    padding: 2rem 1.5rem;
    background: var(--s814-card-bg);
    margin: 1rem 0;
}

.s814-info-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--s814-primary);
    margin-bottom: 1.2rem;
}

.s814-info-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--s814-text-muted);
    margin-bottom: 1rem;
}

.s814-info-text strong {
    color: var(--s814-primary);
}

/* Features List */
.s814-features-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.s814-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--s814-bg-light);
    border-radius: var(--s814-radius);
}

.s814-feature-icon {
    width: 44px;
    height: 44px;
    background: var(--s814-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.s814-feature-icon i {
    font-size: 2rem;
    color: var(--s814-bg-dark);
}

.s814-feature-content h4 {
    font-size: 1.4rem;
    color: var(--s814-primary);
    margin-bottom: 0.3rem;
}

.s814-feature-content p {
    font-size: 1.2rem;
    color: var(--s814-text-muted);
    line-height: 1.4;
}

/* FAQ Section */
.s814-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.s814-faq-item {
    background: var(--s814-bg-light);
    border-radius: var(--s814-radius);
    padding: 1.2rem;
}

.s814-faq-question {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s814-primary);
    margin-bottom: 0.5rem;
}

.s814-faq-answer {
    font-size: 1.3rem;
    color: var(--s814-text-muted);
    line-height: 1.5;
}

/* Promo CTA */
.s814-promo-cta {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--s814-bg-light) 0%, var(--s814-bg) 100%);
    border-radius: var(--s814-radius-lg);
    margin: 1.5rem;
}

.s814-promo-cta h3 {
    font-size: 2rem;
    color: var(--s814-primary);
    margin-bottom: 1rem;
}

.s814-promo-cta p {
    font-size: 1.4rem;
    color: var(--s814-text-muted);
    margin-bottom: 1.5rem;
}

.s814-promo-cta .s814-btn {
    font-size: 1.6rem;
    padding: 1.2rem 3rem;
}

/* Footer */
.s814-footer {
    background: var(--s814-bg-dark);
    padding: 2rem 1.5rem 8rem;
    border-top: 1px solid var(--s814-border);
}

@media (min-width: 769px) {
    .s814-footer {
        padding-bottom: 2rem;
    }
}

.s814-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s814-footer-links a {
    font-size: 1.3rem;
    color: var(--s814-text-muted);
    padding: 0.5rem 1rem;
    border-radius: var(--s814-radius);
    transition: var(--s814-transition);
}

.s814-footer-links a:hover {
    background: var(--s814-bg-light);
    color: var(--s814-primary);
}

.s814-partners {
    margin-bottom: 2rem;
}

.s814-partners-title {
    font-size: 1.4rem;
    color: var(--s814-text-muted);
    text-align: center;
    margin-bottom: 1rem;
}

.s814-partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.s814-partner-logo {
    width: 50px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--s814-transition);
}

.s814-partner-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

.s814-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--s814-text-muted);
    padding-top: 1.5rem;
    border-top: 1px solid var(--s814-border);
}

/* Bottom Navigation - Mobile */
.s814-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--s814-bg-dark) 0%, #1a1a1a 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    max-width: 430px;
    margin: 0 auto;
    border-top: 1px solid var(--s814-primary);
}

@media (min-width: 769px) {
    .s814-bottom-nav {
        display: none;
    }
}

.s814-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--s814-text-muted);
    cursor: pointer;
    transition: var(--s814-transition);
    border-radius: 12px;
}

.s814-nav-btn:hover,
.s814-nav-btn.active {
    color: var(--s814-primary);
    background: rgba(255, 179, 186, 0.1);
}

.s814-nav-btn i {
    font-size: 24px;
    margin-bottom: 2px;
}

.s814-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Utility Classes */
.s814-text-center {
    text-align: center;
}

.s814-mt-1 { margin-top: 0.5rem; }
.s814-mt-2 { margin-top: 1rem; }
.s814-mt-3 { margin-top: 1.5rem; }
.s814-mb-1 { margin-bottom: 0.5rem; }
.s814-mb-2 { margin-bottom: 1rem; }
.s814-mb-3 { margin-bottom: 1.5rem; }

.s814-hidden-mobile {
    display: none;
}

@media (min-width: 769px) {
    .s814-hidden-mobile {
        display: block;
    }
    .s814-hidden-desktop {
        display: none;
    }
}

/* Desktop Navigation */
@media (min-width: 769px) {
    .s814-desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .s814-desktop-nav a {
        font-size: 1.4rem;
        color: var(--s814-text);
        font-weight: 500;
        transition: var(--s814-transition);
    }

    .s814-desktop-nav a:hover {
        color: var(--s814-primary);
    }

    .s814-hamburger {
        display: none;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.s814-animate {
    animation: fadeIn 0.5s ease forwards;
}

/* Help Page Styles */
.s814-help-content {
    padding: 2rem 1.5rem;
}

.s814-help-content h2 {
    font-size: 1.8rem;
    color: var(--s814-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--s814-primary);
}

.s814-help-content h3 {
    font-size: 1.5rem;
    color: var(--s814-text);
    margin: 1.5rem 0 0.8rem;
}

.s814-help-content p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--s814-text-muted);
    margin-bottom: 1rem;
}

.s814-help-content ul,
.s814-help-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.s814-help-content li {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--s814-text-muted);
    margin-bottom: 0.5rem;
    list-style: disc;
}

.s814-help-content ol li {
    list-style: decimal;
}

/* Responsive Typography */
@media (max-width: 360px) {
    html {
        font-size: 55%;
    }
}
