/**
 * Plus PH Login - Core Stylesheet
 * CSS Class Prefix: w8fcb-
 * Version: 1.0.0
 */

/* CSS Variables - Color Palette */
:root {
    --w8fcb-primary: #8B7355;
    --w8fcb-secondary: #BC8F8F;
    --w8fcb-accent: #F08080;
    --w8fcb-highlight: #F5DEB3;
    --w8fcb-dark: #1B263B;
    --w8fcb-dark-light: #2A3F5F;
    --w8fcb-white: #FFFFFF;
    --w8fcb-gray-light: #F5F5F5;
    --w8fcb-gray: #E0E0E0;
    --w8fcb-text: #F5DEB3;
    --w8fcb-text-dark: #1B263B;
    --w8fcb-shadow: rgba(27, 38, 59, 0.3);
    --w8fcb-glow: rgba(188, 143, 143, 0.4);
    --w8fcb-font-primary: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--w8fcb-font-primary);
    background-color: var(--w8fcb-dark);
    color: var(--w8fcb-text);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Mobile-First Responsive Container */
.w8fcb-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.w8fcb-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--w8fcb-text);
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: var(--w8fcb-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--w8fcb-accent);
}

/* Header Styles */
.w8fcb-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--w8fcb-dark) 0%, var(--w8fcb-dark-light) 100%);
    box-shadow: 0 2px 10px var(--w8fcb-shadow);
    padding: 0.8rem 1.2rem;
}

.w8fcb-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.w8fcb-logo-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w8fcb-logo-icon {
    width: 32px;
    height: 32px;
}

.w8fcb-site-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--w8fcb-text);
    white-space: nowrap;
}

.w8fcb-header-actions {
    display: flex;
    gap: 0.6rem;
}

/* Button Styles */
.w8fcb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 44px;
    min-width: 80px;
}

.w8fcb-btn-primary {
    background: linear-gradient(135deg, var(--w8fcb-primary) 0%, var(--w8fcb-secondary) 100%);
    color: var(--w8fcb-dark);
    box-shadow: 0 2px 8px var(--w8fcb-glow);
}

.w8fcb-btn-primary:hover {
    background: linear-gradient(135deg, var(--w8fcb-secondary) 0%, var(--w8fcb-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--w8fcb-glow);
}

.w8fcb-btn-secondary {
    background: transparent;
    color: var(--w8fcb-text);
    border: 2px solid var(--w8fcb-primary);
}

.w8fcb-btn-secondary:hover {
    background: var(--w8fcb-primary);
    color: var(--w8fcb-dark);
}

.w8fcb-btn-accent {
    background: linear-gradient(135deg, var(--w8fcb-accent) 0%, var(--w8fcb-secondary) 100%);
    color: var(--w8fcb-white);
    box-shadow: 0 2px 8px rgba(240, 128, 128, 0.4);
}

.w8fcb-btn-accent:hover {
    background: linear-gradient(135deg, var(--w8fcb-secondary) 0%, var(--w8fcb-accent) 100%);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.w8fcb-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.w8fcb-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--w8fcb-text);
    transition: all 0.3s ease;
}

.w8fcb-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.w8fcb-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.w8fcb-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.w8fcb-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.w8fcb-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel */
.w8fcb-mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    max-width: 85%;
    height: 100vh;
    background: linear-gradient(135deg, var(--w8fcb-dark) 0%, var(--w8fcb-dark-light) 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem 1.5rem;
}

.w8fcb-menu-open {
    right: 0;
}

.w8fcb-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--w8fcb-gray);
}

.w8fcb-menu-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--w8fcb-text);
}

.w8fcb-menu-close {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: var(--w8fcb-text);
    font-size: 1.5rem;
    cursor: pointer;
}

.w8fcb-nav-list {
    list-style: none;
}

.w8fcb-nav-item {
    margin-bottom: 0.5rem;
}

.w8fcb-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    color: var(--w8fcb-text);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.w8fcb-nav-link:hover {
    background: rgba(139, 115, 85, 0.2);
    color: var(--w8fcb-accent);
}

.w8fcb-nav-link.active {
    background: rgba(139, 115, 85, 0.3);
    color: var(--w8fcb-highlight);
}

/* Hero Carousel */
.w8fcb-hero-section {
    margin-top: 62px;
    padding: 1rem 0;
}

.w8fcb-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.w8fcb-hero-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.w8fcb-carousel-slide {
    min-width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.w8fcb-carousel-slide.w8fcb-active {
    opacity: 1;
    visibility: visible;
}

.w8fcb-carousel-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.w8fcb-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.w8fcb-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w8fcb-carousel-indicator.w8fcb-active {
    background: var(--w8fcb-accent);
    transform: scale(1.2);
}

/* Main Content Area */
.w8fcb-main {
    flex: 1;
    padding-bottom: 80px;
}

/* Section Styles */
.w8fcb-section {
    padding: 2rem 0;
}

.w8fcb-section-title {
    font-size: 1.6rem;
    color: var(--w8fcb-highlight);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.w8fcb-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--w8fcb-primary), var(--w8fcb-accent));
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Game Grid Layout */
.w8fcb-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem 0;
}

.w8fcb-game-card {
    background: var(--w8fcb-dark-light);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--w8fcb-shadow);
}

.w8fcb-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px var(--w8fcb-glow);
}

.w8fcb-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.w8fcb-game-name {
    padding: 0.6rem 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    color: var(--w8fcb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Block Styles */
.w8fcb-content-block {
    background: var(--w8fcb-dark-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px var(--w8fcb-shadow);
}

.w8fcb-content-title {
    font-size: 1.3rem;
    color: var(--w8fcb-highlight);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w8fcb-content-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--w8fcb-text);
}

/* RTP Section */
.w8fcb-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.w8fcb-rtp-card {
    background: rgba(139, 115, 85, 0.15);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.w8fcb-rtp-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w8fcb-accent);
}

.w8fcb-rtp-label {
    font-size: 0.9rem;
    color: var(--w8fcb-gray);
    margin-top: 0.3rem;
}

/* Play Button Component */
.w8fcb-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--w8fcb-primary) 0%, var(--w8fcb-secondary) 100%);
    color: var(--w8fcb-dark);
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px var(--w8fcb-glow);
}

.w8fcb-play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--w8fcb-glow);
}

.w8fcb-play-btn i {
    font-size: 1.4rem;
}

/* Feature List */
.w8fcb-feature-list {
    list-style: none;
}

.w8fcb-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.w8fcb-feature-item:last-child {
    border-bottom: none;
}

.w8fcb-feature-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 115, 85, 0.3);
    border-radius: 50%;
    flex-shrink: 0;
    color: var(--w8fcb-accent);
}

.w8fcb-feature-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--w8fcb-text);
}

/* FAQ Section */
.w8fcb-faq-item {
    background: rgba(139, 115, 85, 0.1);
    border-radius: 8px;
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.w8fcb-faq-question {
    padding: 1rem 1.2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--w8fcb-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.w8fcb-faq-question:hover {
    background: rgba(139, 115, 85, 0.2);
}

.w8fcb-faq-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.w8fcb-faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.w8fcb-faq-item.open .w8fcb-faq-answer {
    padding: 0 1.2rem 1rem;
    max-height: 500px;
}

.w8fcb-faq-item.open .w8fcb-faq-toggle {
    transform: rotate(180deg);
}

/* Footer Styles */
.w8fcb-footer {
    background: var(--w8fcb-dark-light);
    padding: 2rem 1.2rem 100px;
    margin-top: 2rem;
}

.w8fcb-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.w8fcb-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.w8fcb-footer-link {
    display: block;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--w8fcb-gray);
    transition: color 0.3s ease;
}

.w8fcb-footer-link:hover {
    color: var(--w8fcb-accent);
}

/* Partner Logos */
.w8fcb-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--w8fcb-gray);
    border-bottom: 1px solid var(--w8fcb-gray);
}

.w8fcb-partner-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.w8fcb-partner-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.w8fcb-copyright {
    text-align: center;
    font-size: 0.85rem;
    color: var(--w8fcb-gray);
}

/* Mobile Bottom Navigation */
.w8fcb-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--w8fcb-dark) 0%, var(--w8fcb-dark-light) 100%);
    box-shadow: 0 -2px 10px var(--w8fcb-shadow);
    padding: 0.6rem 0.4rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 62px;
}

.w8fcb-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
    padding: 0.4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--w8fcb-gray);
    text-decoration: none;
}

.w8fcb-nav-item:hover,
.w8fcb-nav-item.active {
    color: var(--w8fcb-accent);
}

.w8fcb-nav-item:hover .w8fcb-nav-icon-wrapper,
.w8fcb-nav-item.active .w8fcb-nav-icon-wrapper {
    transform: scale(1.1);
    background: rgba(240, 128, 128, 0.2);
}

.w8fcb-nav-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-bottom: 2px;
}

.w8fcb-nav-icon {
    font-size: 20px;
}

.w8fcb-nav-label {
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

/* Desktop Hide for Bottom Nav */
@media (min-width: 769px) {
    .w8fcb-bottom-nav {
        display: none;
    }

    .w8fcb-main {
        padding-bottom: 0;
    }

    .w8fcb-header {
        padding: 1rem 2rem;
    }

    .w8fcb-header-content {
        max-width: 100%;
    }

    .w8fcb-container {
        max-width: 1200px;
    }

    .w8fcb-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .w8fcb-footer-links {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop Navigation - Show on large screens */
.w8fcb-desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .w8fcb-desktop-nav {
        display: flex;
        gap: 2rem;
    }

    .w8fcb-menu-toggle {
        display: none;
    }
}

/* Inline Link Styles for SEO */
.w8fcb-inline-link {
    color: var(--w8fcb-highlight);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--w8fcb-accent);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.w8fcb-inline-link:hover {
    color: var(--w8fcb-accent);
    text-decoration-color: var(--w8fcb-primary);
}

/* Utility Classes */
.w8fcb-text-center { text-align: center; }
.w8fcb-text-left { text-align: left; }
.w8fcb-text-right { text-align: right; }
.w8fcb-mt-1 { margin-top: 1rem; }
.w8fcb-mt-2 { margin-top: 2rem; }
.w8fcb-mb-1 { margin-bottom: 1rem; }
.w8fcb-mb-2 { margin-bottom: 2rem; }
.w8fcb-p-1 { padding: 1rem; }
.w8fcb-p-2 { padding: 2rem; }
.w8fcb-hidden { display: none; }
.w8fcb-visible { display: block; }

/* Loading Animation */
.w8fcb-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--w8fcb-gray);
    border-radius: 50%;
    border-top-color: var(--w8fcb-accent);
    animation: w8fcb-spin 1s linear infinite;
}

@keyframes w8fcb-spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--w8fcb-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--w8fcb-primary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--w8fcb-secondary);
}

/* Highlight effect for internal links */
.w8fcb-highlight-box {
    background: rgba(139, 115, 85, 0.2);
    border-left: 4px solid var(--w8fcb-accent);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

/* Icon styles for different libraries */
.w8fcb-icon-solid { font-weight: 900; }
.w8fcb-icon-regular { font-weight: 400; }
.w8fcb-icon-duotone { opacity: 0.6; }

/* Material Icons adjustment */
.material-icons {
    font-size: 24px;
    line-height: 1;
}

/* Bootstrap Icons adjustment */
.bi {
    font-size: 20px;
    line-height: 1;
}

/* Tabler Icons adjustment */
.tabler-icon {
    width: 24px;
    height: 24px;
}
