/**
 * PH365 VIP - Main Stylesheet
 * All classes use prefix: we5ca-
 * Colors: #212F3D (dark bg), #D2691E (accent), #004D40 (teal)
 */

/* Root Variables */
:root {
    --we5ca-primary: #D2691E;
    --we5ca-secondary: #004D40;
    --we5ca-bg-dark: #212F3D;
    --we5ca-bg-darker: #1a252f;
    --we5ca-text-light: #f5f5f5;
    --we5ca-text-muted: #b0b0b0;
    --we5ca-accent: #FF8C00;
    --we5ca-success: #2E7D32;
    --we5ca-border: rgba(210, 105, 30, 0.3);
    font-size: 62.5%;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    background: var(--we5ca-bg-dark);
    color: var(--we5ca-text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.we5ca-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.we5ca-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--we5ca-bg-darker) 0%, var(--we5ca-bg-dark) 100%);
    border-bottom: 2px solid var(--we5ca-primary);
    transition: all 0.3s ease;
}
.we5ca-header-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.we5ca-header-inner {
    max-width: 430px;
    margin: 0 auto;
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.we5ca-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--we5ca-text-light);
}
.we5ca-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}
.we5ca-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--we5ca-primary);
}
.we5ca-header-btns {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Buttons */
.we5ca-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}
.we5ca-btn-primary {
    background: linear-gradient(135deg, var(--we5ca-primary) 0%, var(--we5ca-accent) 100%);
    color: #fff;
}
.we5ca-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(210,105,30,0.4); }
.we5ca-btn-outline {
    background: transparent;
    border: 1px solid var(--we5ca-primary);
    color: var(--we5ca-primary);
}
.we5ca-btn-outline:hover { background: var(--we5ca-primary); color: #fff; }
.we5ca-btn-secondary {
    background: var(--we5ca-secondary);
    color: #fff;
}
.we5ca-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.4rem;
    width: 100%;
    margin-top: 1rem;
}
.we5ca-menu-btn {
    background: transparent;
    border: none;
    color: var(--we5ca-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Menu Overlay */
.we5ca-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;
}
.we5ca-overlay-active { opacity: 1; visibility: visible; }

/* Mobile Menu */
.we5ca-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--we5ca-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}
.we5ca-menu-active { right: 0; }
.we5ca-menu-header {
    padding: 1.2rem;
    border-bottom: 1px solid var(--we5ca-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.we5ca-menu-close {
    background: transparent;
    border: none;
    color: var(--we5ca-text-light);
    font-size: 2rem;
    cursor: pointer;
}
.we5ca-menu-nav {
    list-style: none;
    padding: 1rem 0;
}
.we5ca-menu-nav li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--we5ca-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: background 0.2s;
}
.we5ca-menu-nav li a:hover { background: rgba(210,105,30,0.2); }
.we5ca-menu-nav li a i { width: 24px; color: var(--we5ca-primary); }

/* Main Content */
.we5ca-main {
    padding-top: 60px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Carousel */
.we5ca-carousel {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
}
.we5ca-slide {
    display: none;
    cursor: pointer;
}
.we5ca-slide-active { display: block; }
.we5ca-slide img {
    width: 100%;
    height: auto;
    display: block;
}
.we5ca-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.we5ca-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
}
.we5ca-dot-active { background: var(--we5ca-primary); }

/* Cards */
.we5ca-card {
    background: var(--we5ca-bg-darker);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--we5ca-border);
}
.we5ca-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--we5ca-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.we5ca-card-title i, .we5ca-card-title .material-icons {
    font-size: 2rem;
}
.we5ca-content-text {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--we5ca-text-light);
    margin-bottom: 1rem;
}

/* Game Grid */
.we5ca-game-section { margin-bottom: 2rem; }
.we5ca-game-section-title {
    font-size: 1.5rem;
    color: var(--we5ca-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--we5ca-secondary);
}
.we5ca-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}
.we5ca-game-item {
    text-align: center;
    text-decoration: none;
    color: var(--we5ca-text-light);
    transition: transform 0.2s;
}
.we5ca-game-item:hover { transform: scale(1.05); }
.we5ca-game-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.we5ca-game-item:hover img { border-color: var(--we5ca-primary); }
.we5ca-game-item span {
    font-size: 1rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Feature List */
.we5ca-feature-list {
    list-style: none;
    padding: 0;
}
.we5ca-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--we5ca-border);
}
.we5ca-feature-list li:last-child { border-bottom: none; }
.we5ca-feature-list li i {
    color: var(--we5ca-primary);
    font-size: 1.8rem;
    min-width: 24px;
}

/* Stats Grid */
.we5ca-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.we5ca-stat-card {
    background: rgba(0,77,64,0.3);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--we5ca-secondary);
}
.we5ca-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--we5ca-accent);
}
.we5ca-stat-label {
    font-size: 1.1rem;
    color: var(--we5ca-text-muted);
}

/* RTP Grid */
.we5ca-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}
.we5ca-rtp-item {
    background: rgba(210,105,30,0.1);
    border-radius: 6px;
    padding: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--we5ca-primary);
}
.we5ca-rtp-game { font-size: 1.2rem; color: var(--we5ca-text-light); }
.we5ca-rtp-value { font-size: 1.2rem; font-weight: 700; color: var(--we5ca-accent); }

/* Accordion */
.we5ca-accordion-item {
    background: var(--we5ca-bg-darker);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border: 1px solid var(--we5ca-border);
    overflow: hidden;
}
.we5ca-accordion-header {
    padding: 1rem 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}
.we5ca-accordion-header i { transition: transform 0.3s; }
.we5ca-accordion-active .we5ca-accordion-header i { transform: rotate(180deg); }
.we5ca-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.2rem;
}
.we5ca-accordion-active .we5ca-accordion-content { padding-bottom: 1rem; }

/* FAQ */
.we5ca-faq-item { margin-bottom: 1.2rem; }
.we5ca-faq-q {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--we5ca-primary);
    margin-bottom: 0.5rem;
}
.we5ca-faq-a {
    font-size: 1.3rem;
    color: var(--we5ca-text-light);
    line-height: 1.5;
}

/* Steps List */
.we5ca-steps-list {
    padding-left: 2rem;
    counter-reset: step-counter;
}
.we5ca-steps-list li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    position: relative;
}

/* CTA Banner */
.we5ca-cta-banner {
    background: linear-gradient(135deg, var(--we5ca-secondary) 0%, var(--we5ca-bg-darker) 100%);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 2rem 0;
    border: 2px solid var(--we5ca-primary);
}
.we5ca-cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--we5ca-accent);
    margin-bottom: 0.5rem;
}
.we5ca-cta-text {
    font-size: 1.4rem;
    color: var(--we5ca-text-light);
    margin-bottom: 1rem;
}

/* Game Hero */
.we5ca-game-hero {
    text-align: center;
    margin: 1rem 0;
    cursor: pointer;
}
.we5ca-game-icon-lg {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    border: 3px solid var(--we5ca-primary);
    transition: transform 0.3s;
}
.we5ca-game-hero:hover .we5ca-game-icon-lg { transform: scale(1.05); }

/* Footer */
.we5ca-footer {
    background: var(--we5ca-bg-darker);
    padding: 2rem 0 1rem;
    border-top: 2px solid var(--we5ca-secondary);
}
.we5ca-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.2rem;
    margin-bottom: 1.5rem;
}
.we5ca-footer-links a {
    color: var(--we5ca-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.2s;
}
.we5ca-footer-links a:hover { color: var(--we5ca-primary); }
.we5ca-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}
.we5ca-partners img {
    height: 28px;
    width: auto;
}
.we5ca-footer-copy {
    text-align: center;
    font-size: 1.1rem;
    color: var(--we5ca-text-muted);
}

/* Bottom Navigation */
.we5ca-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--we5ca-bg-darker) 0%, #0d1518 100%);
    border-top: 2px solid var(--we5ca-primary);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
}
.we5ca-bottom-nav-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    padding: 0.6rem 0;
}
.we5ca-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--we5ca-text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    min-width: 60px;
    min-height: 56px;
    transition: all 0.2s ease;
    border-radius: 8px;
}
.we5ca-bottom-btn:hover, .we5ca-bottom-btn:focus {
    color: var(--we5ca-primary);
    background: rgba(210,105,30,0.15);
}
.we5ca-bottom-btn i, .we5ca-bottom-btn .material-icons {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}
.we5ca-bottom-btn span { font-size: 1rem; }
.we5ca-bottom-btn.we5ca-active {
    color: var(--we5ca-primary);
}

/* Touch feedback */
.we5ca-touch-active { transform: scale(0.95); opacity: 0.8; }

/* Desktop adjustments */
@media (min-width: 769px) {
    .we5ca-bottom-nav { display: none; }
    .we5ca-main { padding-bottom: 2rem; }
    .we5ca-menu-btn { display: none; }
}

/* Internal Links */
.we5ca-internal-link {
    color: var(--we5ca-primary);
    text-decoration: underline;
}
.we5ca-internal-link:hover {
    color: var(--we5ca-accent);
}
