/* SuperKing CSS Stylesheet */
/* All classes use w5868- prefix for namespace isolation */

/* CSS Variables */
:root {
    --w5868-primary: #880E4F;
    --w5868-secondary: #2C3E50;
    --w5868-accent: #FFDEAD;
    --w5868-light: #FDF5E6;
    --w5868-bg: #FAFAFA;
    --w5868-dark: #2C3E50;
    --w5868-success: #27ae60;
    --w5868-warning: #f39c12;
    --w5868-error: #e74c3c;
    --w5868-border-radius: 12px;
    --w5868-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --w5868-shadow: 0 4px 20px rgba(136, 14, 79, 0.15);
    --w5868-shadow-hover: 0 8px 30px rgba(136, 14, 79, 0.25);
    --w5868-gradient: linear-gradient(135deg, #880E4F, #2C3E50);
}

/* Reset and Base Styles */
* {
    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;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--w5868-dark);
    background-color: var(--w5868-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container and Layout */
.w5868-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.w5868-wrapper {
    min-height: 100vh;
    padding-bottom: 80px;
}

.w5868-section {
    padding: 25px 0;
    margin-bottom: 25px;
}

/* Header Styles */
.w5868-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--w5868-gradient);
    box-shadow: var(--w5868-shadow);
    z-index: 1000;
}

.w5868-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    height: 70px;
}

.w5868-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.w5868-logo img {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 6px;
    background: var(--w5868-accent);
}

.w5868-header-buttons {
    display: flex;
    gap: 12px;
}

.w5868-btn {
    padding: 12px 20px;
    border: none;
    border-radius: var(--w5868-border-radius);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--w5868-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.w5868-btn-primary {
    background: var(--w5868-accent);
    color: var(--w5868-primary);
    box-shadow: 0 4px 15px rgba(255, 222, 173, 0.3);
}

.w5868-btn-primary:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: var(--w5868-shadow-hover);
}

.w5868-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--w5868-accent);
}

.w5868-btn-secondary:hover {
    background: var(--w5868-accent);
    color: var(--w5868-primary);
}

.w5868-menu-button {
    background: transparent;
    border: none;
    color: white;
    font-size: 2.6rem;
    cursor: pointer;
    padding: 8px;
    display: none;
    transition: var(--w5868-transition);
}

.w5868-menu-button:hover {
    transform: scale(1.1);
    color: var(--w5868-accent);
}

/* Mobile Menu */
.w5868-mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--w5868-light);
    box-shadow: var(--w5868-shadow);
    z-index: 9999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-30px);
    transition: var(--w5868-transition);
}

.w5868-mobile-menu.w5868-menu-open {
    opacity: 1;
    transform: translateY(0);
}

.w5868-mobile-menu-content {
    padding: 20px;
}

.w5868-menu-link {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    color: var(--w5868-dark);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(136, 14, 79, 0.1);
    transition: var(--w5868-transition);
}

.w5868-menu-link:hover {
    background: var(--w5868-bg);
    color: var(--w5868-primary);
    padding-left: 25px;
}

.w5868-menu-link i {
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

/* Main Content */
.w5868-main {
    margin-top: 70px;
    padding: 20px 0;
}

/* Carousel Styles */
.w5868-carousel {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: var(--w5868-border-radius);
    margin-bottom: 35px;
    box-shadow: var(--w5868-shadow);
}

.w5868-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.w5868-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.w5868-carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.w5868-carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--w5868-transition);
    border: 2px solid transparent;
}

.w5868-carousel-indicator.w5868-active {
    background: var(--w5868-accent);
    width: 25px;
    border-radius: 6px;
    border-color: white;
}

.w5868-carousel-indicator:hover {
    background: white;
}

/* Game Styles */
.w5868-game-section {
    margin-bottom: 35px;
}

.w5868-section-title {
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--w5868-primary);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.w5868-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--w5868-gradient);
    border-radius: 2px;
}

.w5868-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.w5868-game-item {
    background: white;
    border-radius: var(--w5868-border-radius);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--w5868-transition);
    box-shadow: 0 2px 8px rgba(136, 14, 79, 0.1);
    text-decoration: none;
    color: var(--w5868-dark);
    border: 2px solid transparent;
}

.w5868-game-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--w5868-shadow-hover);
    border-color: var(--w5868-accent);
}

.w5868-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--w5868-bg);
}

.w5868-game-name {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--w5868-secondary);
}

/* Card Styles */
.w5868-card {
    background: white;
    border-radius: var(--w5868-border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--w5868-shadow);
    transition: var(--w5868-transition);
    border: 1px solid rgba(136, 14, 79, 0.1);
    position: relative;
    overflow: hidden;
}

.w5868-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--w5868-gradient);
}

.w5868-card:hover {
    box-shadow: var(--w5868-shadow-hover);
    transform: translateY(-2px);
}

.w5868-card-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--w5868-primary);
    margin-bottom: 15px;
    padding-left: 15px;
}

.w5868-card-content {
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--w5868-secondary);
}

/* Feature Styles */
.w5868-feature-list {
    list-style: none;
    margin: 20px 0;
}

.w5868-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1.5rem;
    padding: 8px 0;
}

.w5868-feature-icon {
    color: var(--w5868-primary);
    margin-right: 15px;
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

/* Promotion Styles */
.w5868-promo-box {
    background: var(--w5868-gradient);
    color: white;
    padding: 30px;
    border-radius: var(--w5868-border-radius);
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.w5868-promo-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,222,173,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.w5868-promo-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.w5868-promo-description {
    font-size: 1.6rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.w5868-promo-btn {
    background: var(--w5868-accent);
    color: var(--w5868-primary);
    padding: 15px 30px;
    border: none;
    border-radius: var(--w5868-border-radius);
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--w5868-transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 222, 173, 0.4);
}

.w5868-promo-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 222, 173, 0.6);
}

/* Footer Styles */
.w5868-footer {
    background: var(--w5868-secondary);
    color: white;
    padding: 35px 0 25px;
    margin-top: 50px;
    position: relative;
}

.w5868-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--w5868-gradient);
}

.w5868-footer-content {
    text-align: center;
    margin-bottom: 25px;
}

.w5868-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 25px;
}

.w5868-footer-link {
    color: var(--w5868-accent);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    transition: var(--w5868-transition);
    padding: 5px 0;
}

.w5868-footer-link:hover {
    color: white;
    transform: translateY(-1px);
}

.w5868-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.w5868-partner-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--w5868-transition);
    border-radius: 8px;
    background: white;
    padding: 5px;
}

.w5868-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.w5868-copyright {
    font-size: 1.3rem;
    color: var(--w5868-accent);
    text-align: center;
    font-weight: 500;
}

/* Mobile Bottom Navigation */
.w5868-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--w5868-gradient);
    box-shadow: 0 -4px 20px rgba(136, 14, 79, 0.2);
    z-index: 1000;
    display: none;
}

.w5868-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 65px;
    padding: 0 10px;
}

.w5868-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    min-height: 65px;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--w5868-transition);
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: var(--w5868-border-radius);
    position: relative;
}

.w5868-nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.w5868-nav-item.w5868-nav-active {
    background: rgba(255, 222, 173, 0.3);
    color: var(--w5868-accent);
}

.w5868-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
}

.w5868-nav-text {
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Notification Styles */
.w5868-notification {
    position: fixed;
    top: 90px;
    right: 15px;
    background: var(--w5868-success);
    color: white;
    padding: 15px 25px;
    border-radius: var(--w5868-border-radius);
    box-shadow: var(--w5868-shadow);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: var(--w5868-transition);
    font-size: 1.5rem;
    font-weight: 600;
}

.w5868-notification.w5868-notification-show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media (min-width: 769px) {
    .w5868-bottom-nav {
        display: none !important;
    }

    .w5868-menu-button {
        display: block;
    }

    .w5868-wrapper {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .w5868-bottom-nav {
        display: block;
    }

    .w5868-wrapper {
        padding-bottom: 80px;
    }

    .w5868-header-buttons {
        display: none;
    }

    .w5868-menu-button {
        display: block;
    }

    .w5868-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 10px;
    }

    .w5868-section-title {
        font-size: 2.2rem;
    }

    .w5868-card {
        padding: 20px;
    }

    .w5868-promo-box {
        padding: 25px;
    }

    .w5868-carousel {
        height: 180px;
    }
}

/* Loading States */
.w5868-loading {
    opacity: 0.6;
    pointer-events: none;
}

.w5868-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--w5868-primary);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: w5868-spin 1s linear infinite;
    display: inline-block;
    margin-left: 12px;
}

@keyframes w5868-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.w5868-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.w5868-focus-visible:focus {
    outline: 3px solid var(--w5868-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .w5868-header,
    .w5868-bottom-nav,
    .w5868-carousel {
        display: none;
    }

    .w5868-main {
        margin-top: 0;
    }

    body {
        background: white;
        color: black;
    }
}