/* 888bet ph - Main Design CSS */
/* All classes prefixed with w7247 for namespace isolation */

/* CSS Variables - Color Palette */
:root {
    --w7247-navy: #000080;
    --w7247-sky: #87CEEB;
    --w7247-deep-sky: #00BFFF;
    --w7247-dark-gray: #34495E;
    --w7247-lavender: #E6E6FA;
    --w7247-white: #ffffff;
    --w7247-black: #000000;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--w7247-dark-gray);
    background-color: var(--w7247-white);
    overflow-x: hidden;
}

.w7247-loaded * {
    animation: w7247-fadeIn 0.3s ease-in;
}

@keyframes w7247-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header Styles */
.w7247-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--w7247-navy) 0%, var(--w7247-dark-gray) 100%);
    padding: 12px 16px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.w7247-header-container {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w7247-logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--w7247-white);
}

.w7247-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--w7247-deep-sky);
    display: flex;
    align-items: center;
    justify-content: center;
}

.w7247-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--w7247-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w7247-header-buttons {
    display: flex;
    gap: 10px;
}

.w7247-register-btn,
.w7247-login-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.w7247-register-btn {
    background: var(--w7247-deep-sky);
    color: var(--w7247-white);
}

.w7247-register-btn:hover {
    background: var(--w7247-sky);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 191, 255, 0.3);
}

.w7247-login-btn {
    background: transparent;
    color: var(--w7247-white);
    border: 2px solid var(--w7247-sky);
}

.w7247-login-btn:hover {
    background: var(--w7247-sky);
    transform: translateY(-2px);
}

.w7247-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--w7247-white);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

/* Main Content */
.w7247-main {
    margin-top: 64px;
    padding: 0 0 80px 0;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Carousel */
.w7247-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0;
}

.w7247-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.w7247-carousel-slide.w7247-active {
    opacity: 1;
}

.w7247-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w7247-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.w7247-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w7247-carousel-dot.w7247-active {
    background: var(--w7247-deep-sky);
    width: 24px;
    border-radius: 5px;
}

/* Content Sections */
.w7247-section {
    padding: 24px 16px;
}

.w7247-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--w7247-navy);
    margin-bottom: 20px;
    text-align: center;
}

.w7247-section-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--w7247-dark-gray);
    margin-bottom: 16px;
}

/* Game Grid */
.w7247-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.w7247-game-card {
    background: var(--w7247-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.w7247-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.w7247-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w7247-game-name {
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--w7247-dark-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Tabs */
.w7247-category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 16px;
    background: var(--w7247-lavender);
    scrollbar-width: none;
}

.w7247-category-tab {
    padding: 8px 16px;
    background: var(--w7247-white);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--w7247-dark-gray);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.w7247-category-tab.w7247-active,
.w7247-category-tab:hover {
    background: var(--w7247-deep-sky);
    color: var(--w7247-white);
}

/* CTA Buttons */
.w7247-cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--w7247-deep-sky) 0%, var(--w7247-sky) 100%);
    color: var(--w7247-white);
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.w7247-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.4);
}

/* Info Cards */
.w7247-info-card {
    background: linear-gradient(135deg, var(--w7247-lavender) 0%, var(--w7247-white) 100%);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.w7247-info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--w7247-navy);
    margin-bottom: 12px;
}

.w7247-info-content {
    font-size: 14px;
    color: var(--w7247-dark-gray);
    line-height: 1.8;
}

/* Footer */
.w7247-footer {
    background: linear-gradient(135deg, var(--w7247-navy) 0%, var(--w7247-dark-gray) 100%);
    padding: 32px 16px 100px 16px;
    color: var(--w7247-white);
}

.w7247-footer-section {
    margin-bottom: 24px;
}

.w7247-footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--w7247-sky);
}

.w7247-footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.w7247-footer-link {
    color: var(--w7247-white);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.w7247-footer-link:hover {
    color: var(--w7247-deep-sky);
}

.w7247-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.w7247-partner-logo {
    width: 60px;
    height: 30px;
    background: var(--w7247-white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--w7247-dark-gray);
    font-weight: 600;
}

.w7247-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Menu */
.w7247-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.w7247-menu-overlay.w7247-active {
    opacity: 1;
    visibility: visible;
}

.w7247-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w7247-white);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
}

.w7247-mobile-menu.w7247-active {
    right: 0;
}

.w7247-menu-header {
    background: linear-gradient(135deg, var(--w7247-navy) 0%, var(--w7247-dark-gray) 100%);
    padding: 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.w7247-menu-close {
    background: none;
    border: none;
    color: var(--w7247-white);
    font-size: 24px;
    cursor: pointer;
}

.w7247-menu-links {
    padding: 20px 16px;
}

.w7247-mobile-nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--w7247-dark-gray);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid var(--w7247-lavender);
    transition: all 0.3s ease;
}

.w7247-mobile-nav-link:hover,
.w7247-mobile-nav-link.w7247-active {
    background: var(--w7247-lavender);
    color: var(--w7247-navy);
    border-radius: 8px;
}

/* Mobile Bottom Navigation */
.w7247-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--w7247-navy) 0%, var(--w7247-dark-gray) 100%);
    padding: 8px 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.w7247-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--w7247-white);
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.w7247-bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.w7247-bottom-nav-item.w7247-active {
    color: var(--w7247-deep-sky);
}

.w7247-nav-icon {
    font-size: 24px;
}

.w7247-nav-label {
    font-size: 11px;
    font-weight: 600;
}

/* Scroll Animations */
.w7247-animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.w7247-animate-on-scroll.w7247-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (min-width: 769px) {
    .w7247-mobile-bottom-nav {
        display: none;
    }

    .w7247-main {
        padding-bottom: 0;
    }

    .w7247-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .w7247-menu-toggle {
        display: block;
    }

    .w7247-main {
        padding-bottom: 80px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--w7247-navy);
    font-weight: 700;
    margin-bottom: 16px;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
}

h3 {
    font-size: 20px;
}

p {
    margin-bottom: 16px;
    line-height: 1.8;
}

a {
    color: var(--w7247-deep-sky);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--w7247-navy);
}

/* Utility Classes */
.w7247-text-center {
    text-align: center;
}

.w7247-mb-16 {
    margin-bottom: 16px;
}

.w7247-mb-24 {
    margin-bottom: 24px;
}

.w7247-mt-20 {
    margin-top: 20px;
}

.w7247-mt-32 {
    margin-top: 32px;
}

/* Lists */
.w7247-feature-list {
    list-style: none;
    padding: 0;
}

.w7247-feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--w7247-lavender);
    display: flex;
    align-items: center;
    gap: 12px;
}

.w7247-feature-list li:before {
    content: "✓";
    color: var(--w7247-deep-sky);
    font-weight: 700;
    font-size: 18px;
}

/* Tables */
.w7247-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.w7247-table th,
.w7247-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--w7247-lavender);
}

.w7247-table th {
    background: var(--w7247-navy);
    color: var(--w7247-white);
    font-weight: 600;
}

.w7247-table tr:hover {
    background: var(--w7247-lavender);
}

/* Forms */
.w7247-form-group {
    margin-bottom: 20px;
}

.w7247-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--w7247-dark-gray);
}

.w7247-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--w7247-lavender);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.w7247-form-input:focus {
    outline: none;
    border-color: var(--w7247-deep-sky);
}
