/**
 * okplay Website CSS Styles
 * All classes use prefix 's381-' for namespace isolation
 * @version 1.0.0
 */

/* CSS Variables - Color Palette */
:root {
    --s381-primary: #FF8C00;
    --s381-secondary: #FFA500;
    --s381-bg-dark: #212F3D;
    --s381-bg-light: #FFF8DC;
    --s381-text-light: #FFFFFF;
    --s381-text-dark: #212F3D;
    --s381-accent: #FFA500;
    --s381-success: #2ECC71;
    --s381-gradient: linear-gradient(135deg, #FF8C00 0%, #FFA500 100%);
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--s381-bg-dark);
    color: var(--s381-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

/* Container */
.s381-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header Styles */
.s381-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--s381-bg-dark) 0%, rgba(33, 47, 61, 0.95) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
}

.s381-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    max-width: 430px;
    margin: 0 auto;
}

.s381-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.s381-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.s381-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s381-primary);
    letter-spacing: 0.5px;
}

.s381-header-btns {
    display: flex;
    gap: 0.8rem;
}

.s381-btn {
    padding: 0.6rem 1.4rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

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

.s381-btn-login:hover {
    background: var(--s381-primary);
    color: var(--s381-bg-dark);
}

.s381-btn-register {
    background: var(--s381-gradient);
    color: var(--s381-text-light);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4);
}

.s381-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.5);
}

.s381-menu-toggle {
    background: none;
    border: none;
    color: var(--s381-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.s381-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s381-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.s381-menu-active {
    right: 0 !important;
}

.s381-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.s381-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 140, 0, 0.3);
}

.s381-menu-close {
    background: none;
    border: none;
    color: var(--s381-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.s381-menu-nav {
    list-style: none;
}

.s381-menu-nav li {
    margin-bottom: 0.8rem;
}

.s381-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--s381-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.s381-menu-nav a:hover {
    background: rgba(255, 140, 0, 0.2);
    color: var(--s381-primary);
}

/* Main Content */
main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Carousel/Slider */
.s381-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.s381-slides {
    position: relative;
    height: 180px;
}

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

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

.s381-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.game387b-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Section Styles */
.s381-section {
    padding: 2rem 1.2rem;
}

.s381-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s381-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.s381-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--s381-gradient);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Game Cards */
.s381-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
}

.s381-game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.s381-game-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 140, 0, 0.1);
    border-color: var(--s381-primary);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
}

.s381-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.6rem;
}

.s381-game-card span {
    display: block;
    font-size: 1.1rem;
    color: var(--s381-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Tabs */
.s381-category-section {
    padding: 1.5rem 1.2rem;
}

.s381-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.s381-cat-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s381-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.s381-cat-more {
    font-size: 1.2rem;
    color: var(--s381-secondary);
    text-decoration: none;
}

/* Features Section */
.s381-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem 1.2rem;
}

.s381-feature-card {
    background: linear-gradient(145deg, rgba(255, 140, 0, 0.15) 0%, rgba(33, 47, 61, 0.8) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.s381-feature-icon {
    font-size: 2.8rem;
    color: var(--s381-primary);
    margin-bottom: 0.8rem;
}

.s381-feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s381-text-light);
    margin-bottom: 0.4rem;
}

.s381-feature-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* CTA Section */
.s381-cta {
    background: var(--s381-gradient);
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin: 1.5rem 1.2rem;
    border-radius: 20px;
}

.s381-cta h2 {
    font-size: 2rem;
    color: var(--s381-text-light);
    margin-bottom: 0.8rem;
}

.s381-cta p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.s381-cta-btn {
    display: inline-block;
    background: var(--s381-bg-dark);
    color: var(--s381-primary);
    padding: 1rem 3rem;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.s381-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Blocks */
.s381-content-block {
    padding: 1.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    margin: 1rem 0;
}

.s381-content-block h2 {
    font-size: 1.6rem;
    color: var(--s381-primary);
    margin-bottom: 1rem;
}

.s381-content-block p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.s381-content-block ul {
    list-style: none;
    padding-left: 0;
}

.s381-content-block li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
}

.s381-content-block li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--s381-primary);
}

/* Footer */
.s381-footer {
    background: linear-gradient(180deg, var(--s381-bg-dark) 0%, #1a252f 100%);
    padding: 2rem 1.2rem 8rem;
    border-top: 1px solid rgba(255, 140, 0, 0.2);
}

.s381-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.s381-footer-brand p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.s381-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.s381-footer-link {
    font-size: 1.2rem;
    color: var(--s381-text-light);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.s381-footer-link:hover {
    background: var(--s381-primary);
    color: var(--s381-bg-dark);
}

.s381-footer-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.s381-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(33, 47, 61, 0.98) 0%, #1a252f 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 140, 0, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.s381-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
}

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

.s381-nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.s381-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Partners Section */
.s381-partners {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    flex-wrap: wrap;
}

.s381-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

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

/* Responsive - Desktop */
@media (min-width: 769px) {
    .s381-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }

    .s381-footer {
        padding-bottom: 2rem;
    }

    .s381-container {
        max-width: 768px;
    }

    .s381-header-inner {
        max-width: 768px;
    }

    .s381-games-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .s381-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animations */
@keyframes s381-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.s381-pulse {
    animation: s381-pulse 2s ease-in-out infinite;
}

@keyframes s381-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.s381-fade-in {
    animation: s381-fadeIn 0.5s ease forwards;
}

/* Text Link Styles */
.s381-text-link {
    color: var(--s381-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.s381-text-link:hover {
    color: var(--s381-secondary);
    text-decoration: underline;
}

/* Promo Links in Content */
.s381-promo-link {
    color: var(--s381-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s381-promo-link:hover {
    color: var(--s381-secondary);
    text-decoration: underline;
}

/* FAQ Accordion */
.s381-faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.s381-faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--s381-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s381-faq-answer {
    padding: 0 1.5rem 1.2rem;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Steps List */
.s381-steps {
    counter-reset: step;
}

.s381-step-item {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 1.5rem;
}

.s381-step-item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--s381-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--s381-text-light);
}
