/**
 * PH77 Gaming Website - Main Stylesheet
 * All classes use prefix 's443-' for namespace isolation
 * Mobile-first responsive design (max-width: 430px)
 * @version 1.0.0
 */

/* ============================================
   CSS Variables & Reset
   ============================================ */
:root {
    --s443-primary: #FF6347;
    --s443-secondary: #FF1493;
    --s443-accent: #00FFFF;
    --s443-light: #FFB6C1;
    --s443-bg-dark: #2C2C2C;
    --s443-bg-darker: #1a1a1a;
    --s443-text-light: #ffffff;
    --s443-text-muted: #cccccc;
    --s443-border: rgba(255, 99, 71, 0.3);
    --s443-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --s443-gradient: linear-gradient(135deg, var(--s443-primary), var(--s443-secondary));
    --s443-radius: 12px;
    --s443-radius-sm: 8px;
    --s443-transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--s443-text-light);
    background-color: var(--s443-bg-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   Header Styles
   ============================================ */
.s443-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--s443-bg-darker) 0%, rgba(44, 44, 44, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    transition: var(--s443-transition);
    border-bottom: 1px solid var(--s443-border);
}

.s443-header-scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: var(--s443-shadow);
}

.s443-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.s443-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.s443-logo img {
    width: 32px;
    height: 32px;
}

.s443-logo-text {
    font-size: 2rem;
    font-weight: 700;
    background: var(--s443-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s443-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.s443-menu-btn {
    background: transparent;
    border: none;
    color: var(--s443-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 8px;
    transition: var(--s443-transition);
}

.s443-menu-btn:hover {
    color: var(--s443-primary);
}

/* ============================================
   Buttons
   ============================================ */
.s443-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: var(--s443-radius-sm);
    cursor: pointer;
    transition: var(--s443-transition);
    border: none;
    min-height: 44px;
}

.s443-btn-primary {
    background: var(--s443-gradient);
    color: var(--s443-text-light);
    box-shadow: 0 4px 15px rgba(255, 99, 71, 0.4);
}

.s443-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 99, 71, 0.5);
}

.s443-btn-outline {
    background: transparent;
    color: var(--s443-primary);
    border: 2px solid var(--s443-primary);
}

.s443-btn-outline:hover {
    background: var(--s443-primary);
    color: var(--s443-text-light);
}

.s443-btn-sm {
    padding: 8px 16px;
    font-size: 1.2rem;
}

/* ============================================
   Mobile Menu
   ============================================ */
.s443-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--s443-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.s443-menu-active {
    right: 0;
}

.s443-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(--s443-transition);
}

.s443-overlay-active {
    opacity: 1;
    visibility: visible;
}

.s443-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--s443-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.s443-nav-list {
    list-style: none;
}

.s443-nav-item {
    margin-bottom: 8px;
}

.s443-nav-link {
    display: block;
    padding: 14px 16px;
    color: var(--s443-text-light);
    font-size: 1.5rem;
    border-radius: var(--s443-radius-sm);
    transition: var(--s443-transition);
}

.s443-nav-link:hover {
    background: rgba(255, 99, 71, 0.2);
    color: var(--s443-primary);
}

/* ============================================
   Main Content
   ============================================ */
.s443-main {
    padding-top: 70px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.s443-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================
   Carousel/Slider
   ============================================ */
.s443-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--s443-radius);
    margin-bottom: 20px;
}

.s443-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.s443-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.s443-slide-active {
    opacity: 1;
}

.s443-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s443-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.s443-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--s443-transition);
}

.s443-dot-active {
    background: var(--s443-primary);
    transform: scale(1.2);
}

/* ============================================
   Section Titles
   ============================================ */
.s443-section {
    margin-bottom: 30px;
}

.s443-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--s443-text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.s443-section-title i {
    color: var(--s443-primary);
}

.s443-h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--s443-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Game Cards Grid
   ============================================ */
.s443-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.s443-game-card {
    background: var(--s443-bg-darker);
    border-radius: var(--s443-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--s443-transition);
    border: 1px solid var(--s443-border);
}

.s443-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--s443-primary);
    box-shadow: 0 4px 15px rgba(255, 99, 71, 0.3);
}

.s443-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.s443-game-name {
    padding: 6px 4px;
    font-size: 1.1rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--s443-text-muted);
}

/* ============================================
   Category Tabs
   ============================================ */
.s443-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 20px 0 12px;
    color: var(--s443-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   Info Cards & Content Blocks
   ============================================ */
.s443-info-card {
    background: var(--s443-bg-darker);
    border-radius: var(--s443-radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--s443-border);
}

.s443-info-card h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: var(--s443-primary);
}

.s443-info-card p {
    font-size: 1.4rem;
    color: var(--s443-text-muted);
    line-height: 1.6;
}

.s443-text-content {
    font-size: 1.4rem;
    color: var(--s443-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.s443-text-content strong {
    color: var(--s443-primary);
}

/* ============================================
   FAQ Accordion
   ============================================ */
.s443-faq-item {
    background: var(--s443-bg-darker);
    border-radius: var(--s443-radius-sm);
    margin-bottom: 10px;
    border: 1px solid var(--s443-border);
    overflow: hidden;
}

.s443-faq-question {
    padding: 16px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s443-text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.s443-faq-answer {
    padding: 0 16px 16px;
    font-size: 1.3rem;
    color: var(--s443-text-muted);
    line-height: 1.6;
}

/* ============================================
   Feature List
   ============================================ */
.s443-feature-list {
    list-style: none;
}

.s443-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--s443-border);
}

.s443-feature-item:last-child {
    border-bottom: none;
}

.s443-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--s443-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.s443-feature-icon i {
    color: var(--s443-text-light);
    font-size: 1.8rem;
}

.s443-feature-text h4 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    color: var(--s443-text-light);
}

.s443-feature-text p {
    font-size: 1.2rem;
    color: var(--s443-text-muted);
}

/* ============================================
   RTP Analysis Section
   ============================================ */
.s443-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.s443-rtp-item {
    background: var(--s443-bg-darker);
    border-radius: var(--s443-radius-sm);
    padding: 12px;
    text-align: center;
    border: 1px solid var(--s443-border);
}

.s443-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s443-primary);
}

.s443-rtp-label {
    font-size: 1.1rem;
    color: var(--s443-text-muted);
}

/* ============================================
   Footer
   ============================================ */
.s443-footer {
    background: var(--s443-bg-darker);
    padding: 30px 16px;
    border-top: 1px solid var(--s443-border);
}

.s443-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.s443-footer-link {
    font-size: 1.2rem;
    color: var(--s443-text-muted);
    transition: var(--s443-transition);
}

.s443-footer-link:hover {
    color: var(--s443-primary);
}

.s443-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.s443-partner-logo {
    width: 40px;
    height: 20px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--s443-transition);
}

.s443-partner-logo:hover {
    opacity: 1;
}

.s443-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--s443-text-muted);
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */
.s443-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--s443-bg-darker);
    border-top: 1px solid var(--s443-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 8px;
}

.s443-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--s443-text-muted);
    cursor: pointer;
    transition: var(--s443-transition);
    padding: 8px;
}

.s443-nav-btn:hover,
.s443-nav-btn.active {
    color: var(--s443-primary);
}

.s443-nav-btn i {
    font-size: 22px;
    margin-bottom: 4px;
}

.s443-nav-btn span {
    font-size: 10px;
}

/* ============================================
   Promo Link Styles
   ============================================ */
.s443-promo-link {
    color: var(--s443-primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--s443-transition);
}

.s443-promo-link:hover {
    color: var(--s443-secondary);
    text-decoration: underline;
}

.s443-promo-text {
    font-size: 1.4rem;
    color: var(--s443-text-muted);
    margin-bottom: 12px;
}

/* ============================================
   Utility Classes
   ============================================ */
.s443-text-center {
    text-align: center;
}

.s443-mb-10 {
    margin-bottom: 10px;
}

.s443-mb-20 {
    margin-bottom: 20px;
}

.s443-mb-30 {
    margin-bottom: 30px;
}

.s443-touch-active {
    opacity: 0.8;
    transform: scale(0.98);
}

/* ============================================
   Desktop Styles (Hidden Elements)
   ============================================ */
@media (min-width: 769px) {
    .s443-bottom-nav {
        display: none;
    }

    .s443-header {
        padding: 15px 30px;
    }

    .s443-container {
        max-width: 768px;
    }
}

/* ============================================
   Mobile Adjustments
   ============================================ */
@media (max-width: 768px) {
    .s443-main {
        padding-bottom: 80px;
    }
}
