/**
 * PH987 Gaming Platform - Core Stylesheet
 * Version: 1.0.0
 * Class Prefix: w0d48-
 * Color Palette: #1C2833 | #FF9500 | #E65100 | #FF7F50 | #E0E0E0
 */

/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --w0d48-bg-dark: #1C2833;
    --w0d48-primary: #FF9500;
    --w0d48-secondary: #E65100;
    --w0d48-accent: #FF7F50;
    --w0d48-text-light: #E0E0E0;
    --w0d48-text-white: #FFFFFF;
    --w0d48-bg-card: #2C3E50;
    --w0d48-bg-overlay: rgba(28, 40, 51, 0.95);
    --w0d48-border-color: rgba(255, 149, 0, 0.3);
    --w0d48-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --w0d48-radius: 12px;
    --w0d48-radius-sm: 8px;
    --w0d48-transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--w0d48-bg-dark);
    color: var(--w0d48-text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   Header Styles
   ======================================== */
.w0d48-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--w0d48-bg-dark) 0%, #2C3E50 100%);
    padding: 12px 16px;
    transition: var(--w0d48-transition);
    border-bottom: 1px solid var(--w0d48-border-color);
}

.w0d48-header.w0d48-scrolled {
    background: rgba(28, 40, 51, 0.98);
    box-shadow: var(--w0d48-shadow);
}

.w0d48-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w0d48-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.w0d48-logo-img {
    height: 40px;
    width: auto;
}

.w0d48-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--w0d48-primary);
    text-shadow: 0 0 10px rgba(255, 149, 0, 0.5);
}

.w0d48-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.w0d48-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--w0d48-radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--w0d48-transition);
    border: none;
    gap: 6px;
}

.w0d48-btn-login {
    background: transparent;
    color: var(--w0d48-text-light);
    border: 2px solid var(--w0d48-primary);
}

.w0d48-btn-login:hover {
    background: var(--w0d48-primary);
    color: var(--w0d48-bg-dark);
    transform: translateY(-2px);
}

.w0d48-btn-register {
    background: linear-gradient(135deg, var(--w0d48-primary) 0%, var(--w0d48-secondary) 100%);
    color: var(--w0d48-text-white);
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.4);
}

.w0d48-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.6);
}

.w0d48-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--w0d48-text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* ========================================
   Mobile Menu
   ======================================== */
.w0d48-mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w0d48-bg-dark);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid var(--w0d48-border-color);
}

.w0d48-mobile-menu.w0d48-active {
    left: 0;
}

.w0d48-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: var(--w0d48-transition);
}

.w0d48-menu-overlay.w0d48-active {
    opacity: 1;
    visibility: visible;
}

.w0d48-menu-header {
    padding: 20px;
    border-bottom: 1px solid var(--w0d48-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w0d48-menu-close {
    background: none;
    border: none;
    color: var(--w0d48-text-light);
    font-size: 24px;
    cursor: pointer;
}

.w0d48-menu-nav {
    padding: 20px;
}

.w0d48-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--w0d48-text-light);
    text-decoration: none;
    border-radius: var(--w0d48-radius-sm);
    margin-bottom: 8px;
    transition: var(--w0d48-transition);
}

.w0d48-menu-link:hover,
.w0d48-menu-link.active {
    background: rgba(255, 149, 0, 0.15);
    color: var(--w0d48-primary);
}

.w0d48-menu-link i,
.w0d48-menu-link .material-icons {
    font-size: 20px;
    width: 24px;
}

/* ========================================
   Main Content
   ======================================== */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

.w0d48-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========================================
   Banner Slider
   ======================================== */
.w0d48-banner {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.w0d48-banner-slider {
    position: relative;
    height: 220px;
}

@media (min-width: 768px) {
    .w0d48-banner-slider {
        height: 400px;
    }
}

.w0d48-banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.w0d48-banner-slide.w0d48-active {
    opacity: 1;
}

.w0d48-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w0d48-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(28, 40, 51, 0.9));
    padding: 30px 20px;
}

.w0d48-banner-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--w0d48-text-white);
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .w0d48-banner-title {
        font-size: 36px;
    }
}

.w0d48-banner-subtitle {
    font-size: 14px;
    color: var(--w0d48-text-light);
}

.w0d48-banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.w0d48-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--w0d48-transition);
}

.w0d48-banner-dot.w0d48-active {
    background: var(--w0d48-primary);
    transform: scale(1.2);
}

/* ========================================
   Section Styles
   ======================================== */
.w0d48-section {
    padding: 30px 0;
}

.w0d48-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.w0d48-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--w0d48-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.w0d48-section-title i,
.w0d48-section-title .material-icons {
    font-size: 24px;
}

.w0d48-view-all {
    color: var(--w0d48-accent);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--w0d48-transition);
}

.w0d48-view-all:hover {
    color: var(--w0d48-primary);
}

/* ========================================
   Category Tabs
   ======================================== */
.w0d48-category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.w0d48-category-tabs::-webkit-scrollbar {
    display: none;
}

.w0d48-cat-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--w0d48-bg-card);
    color: var(--w0d48-text-light);
    border: 1px solid var(--w0d48-border-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--w0d48-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.w0d48-cat-tab.w0d48-active {
    background: linear-gradient(135deg, var(--w0d48-primary) 0%, var(--w0d48-secondary) 100%);
    color: var(--w0d48-text-white);
    border-color: var(--w0d48-primary);
}

.w0d48-cat-tab:hover:not(.w0d48-active) {
    border-color: var(--w0d48-primary);
    color: var(--w0d48-primary);
}

/* ========================================
   Game Grid
   ======================================== */
.w0d48-cat-content {
    display: none;
}

.w0d48-cat-content.w0d48-active {
    display: block;
}

.w0d48-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (min-width: 576px) {
    .w0d48-game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .w0d48-game-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}

@media (min-width: 992px) {
    .w0d48-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.w0d48-game-card {
    position: relative;
    border-radius: var(--w0d48-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--w0d48-transition);
    background: var(--w0d48-bg-card);
    aspect-ratio: 1;
}

.w0d48-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.3);
}

.w0d48-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--w0d48-transition);
}

.w0d48-game-card:hover img {
    transform: scale(1.1);
}

.w0d48-game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(28, 40, 51, 0.95));
    padding: 8px;
    opacity: 0;
    transition: var(--w0d48-transition);
}

.w0d48-game-card:hover .w0d48-game-overlay {
    opacity: 1;
}

.w0d48-game-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--w0d48-text-white);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w0d48-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--w0d48-primary) 0%, var(--w0d48-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--w0d48-text-white);
    font-size: 20px;
    transition: var(--w0d48-transition);
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.5);
}

.w0d48-game-card:hover .w0d48-play-btn {
    transform: translate(-50%, -50%) scale(1);
}

/* ========================================
   Features Section
   ======================================== */
.w0d48-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .w0d48-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.w0d48-feature-card {
    background: linear-gradient(135deg, var(--w0d48-bg-card) 0%, rgba(44, 62, 80, 0.5) 100%);
    border: 1px solid var(--w0d48-border-color);
    border-radius: var(--w0d48-radius);
    padding: 20px 15px;
    text-align: center;
    transition: var(--w0d48-transition);
}

.w0d48-feature-card:hover {
    border-color: var(--w0d48-primary);
    transform: translateY(-3px);
}

.w0d48-feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--w0d48-primary) 0%, var(--w0d48-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
    color: var(--w0d48-text-white);
}

.w0d48-feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--w0d48-text-white);
    margin-bottom: 6px;
}

.w0d48-feature-desc {
    font-size: 12px;
    color: var(--w0d48-text-light);
    opacity: 0.8;
}

/* ========================================
   CTA Section
   ======================================== */
.w0d48-cta {
    background: linear-gradient(135deg, var(--w0d48-primary) 0%, var(--w0d48-secondary) 100%);
    border-radius: var(--w0d48-radius);
    padding: 30px 20px;
    text-align: center;
    margin: 30px 0;
}

.w0d48-cta-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--w0d48-text-white);
    margin-bottom: 10px;
}

.w0d48-cta-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.w0d48-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: var(--w0d48-bg-dark);
    color: var(--w0d48-primary);
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--w0d48-radius-sm);
    text-decoration: none;
    transition: var(--w0d48-transition);
}

.w0d48-cta-btn:hover {
    background: var(--w0d48-text-white);
    transform: scale(1.05);
}

/* ========================================
   Footer
   ======================================== */
.w0d48-footer {
    background: linear-gradient(180deg, var(--w0d48-bg-card) 0%, var(--w0d48-bg-dark) 100%);
    padding: 40px 16px 20px;
    border-top: 1px solid var(--w0d48-border-color);
}

.w0d48-footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .w0d48-footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.w0d48-footer-brand {
    margin-bottom: 15px;
}

.w0d48-footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--w0d48-primary);
    margin-bottom: 10px;
}

.w0d48-footer-desc {
    font-size: 14px;
    color: var(--w0d48-text-light);
    opacity: 0.8;
    line-height: 1.7;
}

.w0d48-footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--w0d48-primary);
    margin-bottom: 15px;
}

.w0d48-footer-links {
    list-style: none;
}

.w0d48-footer-links li {
    margin-bottom: 10px;
}

.w0d48-footer-links a {
    color: var(--w0d48-text-light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--w0d48-transition);
}

.w0d48-footer-links a:hover {
    color: var(--w0d48-primary);
}

.w0d48-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px solid var(--w0d48-border-color);
    border-bottom: 1px solid var(--w0d48-border-color);
    margin-bottom: 20px;
}

.w0d48-partner-logo {
    height: 30px;
    opacity: 0.7;
    transition: var(--w0d48-transition);
    filter: grayscale(50%);
}

.w0d48-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.w0d48-footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.w0d48-copyright {
    font-size: 13px;
    color: var(--w0d48-text-light);
    opacity: 0.7;
}

/* ========================================
   Bottom Navigation (Mobile)
   ======================================== */
.w0d48-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(44, 62, 80, 0.98) 0%, rgba(28, 40, 51, 0.99) 100%);
    border-top: 2px solid var(--w0d48-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 5px;
}

@media (min-width: 769px) {
    .w0d48-bottom-nav {
        display: none;
    }
}

.w0d48-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 6px 10px;
    color: var(--w0d48-text-light);
    text-decoration: none;
    cursor: pointer;
    transition: var(--w0d48-transition);
    border-radius: 10px;
    position: relative;
}

.w0d48-nav-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: var(--w0d48-primary);
    border-radius: 0 0 3px 3px;
    transition: var(--w0d48-transition);
}

.w0d48-nav-item:hover,
.w0d48-nav-item.active {
    color: var(--w0d48-primary);
    background: rgba(255, 149, 0, 0.1);
}

.w0d48-nav-item:hover::before,
.w0d48-nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

.w0d48-nav-item i,
.w0d48-nav-item .material-icons,
.w0d48-nav-item ion-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.w0d48-nav-item .material-icons {
    font-size: 26px;
}

.w0d48-nav-item ion-icon {
    font-size: 26px;
}

.w0d48-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* ========================================
   Content Pages Styles
   ======================================== */
.w0d48-page-header {
    background: linear-gradient(135deg, var(--w0d48-bg-card) 0%, var(--w0d48-bg-dark) 100%);
    padding: 100px 16px 40px;
    text-align: center;
    border-bottom: 1px solid var(--w0d48-border-color);
}

.w0d48-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--w0d48-primary);
    margin-bottom: 10px;
}

.w0d48-page-subtitle {
    font-size: 14px;
    color: var(--w0d48-text-light);
    opacity: 0.8;
}

.w0d48-content {
    padding: 30px 16px;
}

.w0d48-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--w0d48-primary);
    margin: 25px 0 15px;
    padding-left: 15px;
    border-left: 4px solid var(--w0d48-primary);
}

.w0d48-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--w0d48-accent);
    margin: 20px 0 12px;
}

.w0d48-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--w0d48-text-light);
    margin-bottom: 15px;
}

.w0d48-content ul,
.w0d48-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.w0d48-content li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--w0d48-text-light);
    margin-bottom: 8px;
}

.w0d48-content a {
    color: var(--w0d48-primary);
    text-decoration: none;
    transition: var(--w0d48-transition);
}

.w0d48-content a:hover {
    color: var(--w0d48-accent);
    text-decoration: underline;
}

.w0d48-info-box {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.1) 0%, rgba(230, 81, 0, 0.05) 100%);
    border: 1px solid var(--w0d48-border-color);
    border-radius: var(--w0d48-radius);
    padding: 20px;
    margin: 20px 0;
}

.w0d48-info-box-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--w0d48-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.w0d48-info-box-content {
    font-size: 14px;
    color: var(--w0d48-text-light);
    line-height: 1.7;
}

/* ========================================
   Utility Classes
   ======================================== */
.w0d48-text-center { text-align: center; }
.w0d48-text-primary { color: var(--w0d48-primary); }
.w0d48-text-accent { color: var(--w0d48-accent); }
.w0d48-mb-10 { margin-bottom: 10px; }
.w0d48-mb-20 { margin-bottom: 20px; }
.w0d48-mt-20 { margin-top: 20px; }

.w0d48-body-menu-open {
    overflow: hidden;
}

/* ========================================
   Desktop Navigation
   ======================================== */
.w0d48-desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .w0d48-desktop-nav {
        display: flex;
        align-items: center;
        gap: 25px;
    }

    .w0d48-desktop-nav a {
        color: var(--w0d48-text-light);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: var(--w0d48-transition);
        padding: 5px 0;
        position: relative;
    }

    .w0d48-desktop-nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--w0d48-primary);
        transition: var(--w0d48-transition);
    }

    .w0d48-desktop-nav a:hover {
        color: var(--w0d48-primary);
    }

    .w0d48-desktop-nav a:hover::after {
        width: 100%;
    }

    .w0d48-menu-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .w0d48-menu-toggle {
        display: block;
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 430px) {
    .w0d48-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .w0d48-game-name {
        font-size: 10px;
    }

    .w0d48-feature-card {
        padding: 15px 10px;
    }

    .w0d48-cta {
        padding: 25px 15px;
    }

    .w0d48-cta-title {
        font-size: 20px;
    }
}
