/**
 * GameZone App - Main Stylesheet
 * Version: 1.0.0
 * All classes use prefix 's843-' to avoid namespace conflicts
 * Color Palette: #FF7F50 | #CD5C5C | #E0F2F1 | #B22222 | #1B263B
 */

/* CSS Variables */
:root {
    --s843-primary: #FF7F50;
    --s843-secondary: #CD5C5C;
    --s843-accent: #E0F2F1;
    --s843-danger: #B22222;
    --s843-dark: #1B263B;
    --s843-light: #FFFFFF;
    --s843-gray: #94A3B8;
    --s843-bg-gradient: linear-gradient(135deg, #1B263B 0%, #2D3A4F 100%);
    --s843-header-height: 60px;
    --s843-bottom-nav-height: 60px;
    --s843-border-radius: 8px;
    --s843-transition: all 0.3s ease;
}

/* 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', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background: var(--s843-bg-gradient);
    color: var(--s843-light);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--s843-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.s843-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.s843-wrapper {
    padding: 1.6rem 0;
}

/* Header Styles */
.s843-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--s843-header-height);
    background: var(--s843-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.6rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--s843-transition);
}

.s843-header-scrolled {
    background: rgba(27, 38, 59, 0.95);
    backdrop-filter: blur(10px);
}

.s843-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.s843-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.s843-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s843-primary);
}

.s843-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.s843-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: var(--s843-border-radius);
    cursor: pointer;
    transition: var(--s843-transition);
    border: none;
    min-height: 36px;
}

.s843-btn-primary {
    background: var(--s843-primary);
    color: var(--s843-light);
}

.s843-btn-primary:hover {
    background: #FF6347;
    transform: translateY(-2px);
}

.s843-btn-secondary {
    background: transparent;
    color: var(--s843-light);
    border: 2px solid var(--s843-primary);
}

.s843-btn-secondary:hover {
    background: var(--s843-primary);
}

.s843-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.8rem;
    cursor: pointer;
    background: none;
    border: none;
}

.s843-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--s843-light);
    transition: var(--s843-transition);
}

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

.s843-menu-active {
    right: 0;
}

.s843-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: var(--s843-transition);
}

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

.s843-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--s843-gray);
}

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

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

.s843-menu-nav li {
    margin-bottom: 1.2rem;
}

.s843-menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    font-size: 1.4rem;
    color: var(--s843-light);
    border-radius: var(--s843-border-radius);
    transition: var(--s843-transition);
}

.s843-menu-nav a:hover {
    background: var(--s843-primary);
    color: var(--s843-light);
}

.s843-menu-nav i {
    font-size: 1.8rem;
    width: 24px;
}

/* Main Content */
main {
    padding-top: var(--s843-header-height);
    padding-bottom: calc(var(--s843-bottom-nav-height) + 2rem);
}

@media (min-width: 769px) {
    main {
        padding-bottom: 2rem;
    }
}

/* Carousel Styles */
.s843-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--s843-border-radius);
    margin-bottom: 2rem;
}

.s843-slides-container {
    position: relative;
    width: 100%;
    height: 200px;
}

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

.s843-slide-active {
    opacity: 1;
}

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

.s843-slide-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.s843-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--s843-transition);
}

.s843-dot-active {
    background: var(--s843-primary);
}

/* Section Styles */
.s843-section {
    padding: 2rem 0;
}

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

.s843-section-subtitle {
    font-size: 1.4rem;
    color: var(--s843-gray);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.s843-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.s843-game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--s843-border-radius);
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: var(--s843-transition);
}

.s843-game-card:hover {
    background: rgba(255, 127, 80, 0.2);
    transform: translateY(-3px);
}

.s843-game-card img {
    width: 60px;
    height: 60px;
    border-radius: var(--s843-border-radius);
    margin: 0 auto 0.5rem;
    object-fit: cover;
}

.s843-game-name {
    font-size: 1.1rem;
    color: var(--s843-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Badge */
.s843-category-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--s843-light);
    background: var(--s843-secondary);
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

/* Cards and Features */
.s843-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--s843-border-radius);
    padding: 1.6rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.s843-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s843-primary);
    margin-bottom: 1rem;
}

.s843-card-text {
    font-size: 1.3rem;
    color: var(--s843-gray);
    line-height: 1.8rem;
}

/* Feature List */
.s843-feature-list {
    list-style: none;
}

.s843-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.s843-feature-item:last-child {
    border-bottom: none;
}

.s843-feature-icon {
    font-size: 2rem;
    color: var(--s843-primary);
}

/* Promotional CTA */
.s843-cta {
    background: linear-gradient(135deg, var(--s843-primary), var(--s843-secondary));
    border-radius: var(--s843-border-radius);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.s843-cta-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.s843-cta-text {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.s843-cta .s843-btn {
    font-size: 1.4rem;
    padding: 1rem 2.5rem;
}

/* Footer Styles */
.s843-footer {
    background: var(--s843-dark);
    padding: 3rem 1.6rem 8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 769px) {
    .s843-footer {
        padding-bottom: 3rem;
    }
}

.s843-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.s843-footer-brand p {
    font-size: 1.2rem;
    color: var(--s843-gray);
    margin-top: 1rem;
    line-height: 1.8rem;
}

.s843-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s843-footer-links a {
    font-size: 1.2rem;
    color: var(--s843-light);
    padding: 0.5rem 1rem;
    border-radius: var(--s843-border-radius);
    transition: var(--s843-transition);
}

.s843-footer-links a:hover {
    color: var(--s843-primary);
}

.s843-footer-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--s843-gray);
}

/* Bottom Navigation */
.s843-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--s843-bottom-nav-height);
    background: var(--s843-dark);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 127, 80, 0.3);
}

@media (min-width: 769px) {
    .s843-bottom-nav {
        display: none;
    }
}

.s843-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--s843-transition);
    color: var(--s843-gray);
}

.s843-nav-item:hover,
.s843-nav-item-active {
    color: var(--s843-primary);
}

.s843-nav-item i,
.s843-nav-item .material-icons-outlined {
    font-size: 24px;
    margin-bottom: 2px;
}

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

/* Utilities */
.s843-text-center {
    text-align: center;
}

.s843-text-primary {
    color: var(--s843-primary);
}

.s843-mb-1 {
    margin-bottom: 1rem;
}

.s843-mb-2 {
    margin-bottom: 2rem;
}

.s843-mb-3 {
    margin-bottom: 3rem;
}

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

.s843-animate-pulse {
    animation: s843-pulse 2s infinite;
}

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

.s843-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    transition: var(--s843-transition);
}

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

/* Testimonials */
.s843-testimonial {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--s843-border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.s843-testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.s843-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--s843-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
}

.s843-testimonial-name {
    font-weight: 600;
    font-size: 1.3rem;
}

.s843-testimonial-text {
    font-size: 1.2rem;
    color: var(--s843-gray);
    line-height: 1.6rem;
}

/* Payment Methods */
.s843-payment-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.s843-payment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.2rem;
    border-radius: var(--s843-border-radius);
    font-size: 1.2rem;
}

/* Winners Showcase */
.s843-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--s843-border-radius);
    margin-bottom: 0.8rem;
}

.s843-winner-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.s843-winner-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--s843-primary);
}

/* Internal Links */
.s843-internal-link {
    color: var(--s843-primary);
    text-decoration: underline;
}

.s843-internal-link:hover {
    color: var(--s843-secondary);
}

/* Responsive Adjustments */
@media (max-width: 380px) {
    .s843-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .s843-game-card img {
        width: 50px;
        height: 50px;
    }

    .s843-game-name {
        font-size: 1rem;
    }
}
