/**
 * CassinoOnline - Main Stylesheet
 * Prefix: s938-
 * Version: 1.0.0
 * Color Scheme: #8B0000 | #FA8072 | #212F3D | #A0522D
 */

/* CSS Variables */
:root {
    --s938-primary: #8B0000;
    --s938-secondary: #FA8072;
    --s938-dark: #212F3D;
    --s938-accent: #A0522D;
    --s938-white: #FFFFFF;
    --s938-light: #F5F5F5;
    --s938-gray: #CCCCCC;
    --s938-text: #212F3D;
    --s938-text-light: #FA8072;
    --s938-bg: #212F3D;
    --s938-bg-light: #2C3E50;
    --s938-gradient: linear-gradient(135deg, #8B0000, #A0522D);
    --s938-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --s938-radius: 8px;
    --s938-radius-lg: 16px;
    --vh: 1vh;
}

/* Reset & Base */
* {
    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(--s938-white);
    background-color: var(--s938-bg);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p {
    margin-bottom: 1rem;
    color: var(--s938-gray);
}

a {
    color: var(--s938-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--s938-white);
}

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

.s938-wrapper {
    padding: 2rem 0;
}

/* Header */
.s938-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--s938-dark) 0%, rgba(33, 47, 61, 0.95) 100%);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: var(--s938-shadow);
}

.s938-header-scrolled {
    background: rgba(33, 47, 61, 0.98);
    padding: 0.8rem 0;
}

.s938-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.s938-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s938-logo img {
    width: 32px;
    height: 32px;
}

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

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

.s938-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: var(--s938-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.s938-btn-primary {
    background: var(--s938-gradient);
    color: var(--s938-white);
}

.s938-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

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

.s938-btn-secondary:hover {
    background: var(--s938-secondary);
    color: var(--s938-dark);
}

.s938-menu-toggle {
    background: none;
    border: none;
    color: var(--s938-white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

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

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

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

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

.s938-nav-list {
    list-style: none;
}

.s938-nav-item {
    margin-bottom: 0.5rem;
}

.s938-nav-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--s938-gray);
    font-size: 1.5rem;
    border-radius: var(--s938-radius);
    transition: all 0.3s ease;
}

.s938-nav-link:hover {
    background: var(--s938-bg-light);
    color: var(--s938-secondary);
}

/* Carousel/Slider */
.s938-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 60px;
}

.s938-slides {
    position: relative;
    width: 100%;
}

.s938-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.s938-slide:first-child {
    display: block;
}

.s938-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.s938-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

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

.s938-dot-active {
    background: var(--s938-secondary);
    transform: scale(1.2);
}

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

.s938-section {
    padding: 2rem 0;
}

.s938-section-title {
    font-size: 2rem;
    color: var(--s938-secondary);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

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

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

.s938-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s938-game-item:hover {
    transform: translateY(-5px);
}

.s938-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--s938-radius);
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--s938-bg-light);
    transition: border-color 0.3s ease;
}

.s938-game-item:hover .s938-game-img {
    border-color: var(--s938-secondary);
}

.s938-game-name {
    font-size: 1.2rem;
    color: var(--s938-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Label */
.s938-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background: var(--s938-bg-light);
    border-radius: 20px;
    font-size: 1.4rem;
    color: var(--s938-secondary);
    margin-bottom: 1.5rem;
}

/* Cards */
.s938-card {
    background: var(--s938-bg-light);
    border-radius: var(--s938-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--s938-shadow);
}

.s938-card-title {
    font-size: 1.6rem;
    color: var(--s938-secondary);
    margin-bottom: 1rem;
}

.s938-card-content {
    color: var(--s938-gray);
    font-size: 1.4rem;
}

/* Features List */
.s938-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.s938-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--s938-bg-light);
    border-radius: var(--s938-radius);
}

.s938-feature-icon {
    font-size: 2.4rem;
    color: var(--s938-secondary);
}

.s938-feature-text h4 {
    font-size: 1.4rem;
    color: var(--s938-white);
    margin-bottom: 0.3rem;
}

.s938-feature-text p {
    font-size: 1.2rem;
    margin: 0;
}

/* Testimonials */
.s938-testimonials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.s938-testimonial {
    background: var(--s938-bg-light);
    border-radius: var(--s938-radius);
    padding: 1.5rem;
    border-left: 4px solid var(--s938-primary);
}

.s938-testimonial-text {
    font-style: italic;
    color: var(--s938-gray);
    margin-bottom: 1rem;
}

.s938-testimonial-author {
    font-size: 1.3rem;
    color: var(--s938-secondary);
    font-weight: 600;
}

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

.s938-payment-item {
    background: var(--s938-bg-light);
    padding: 1rem 1.5rem;
    border-radius: var(--s938-radius);
    font-size: 1.3rem;
    color: var(--s938-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Winners Showcase */
.s938-winners-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.s938-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--s938-bg-light);
    border-radius: var(--s938-radius);
}

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

.s938-winner-name {
    font-size: 1.4rem;
    color: var(--s938-white);
}

.s938-winner-game {
    font-size: 1.2rem;
    color: var(--s938-gray);
}

.s938-winner-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--s938-secondary);
}

/* Footer */
.s938-footer {
    background: var(--s938-dark);
    padding: 2rem 0;
    border-top: 1px solid var(--s938-bg-light);
}

.s938-footer-content {
    padding: 0 1.5rem;
}

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

.s938-footer-brand p {
    font-size: 1.3rem;
    line-height: 1.6;
}

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

.s938-footer-link {
    font-size: 1.3rem;
    color: var(--s938-gray);
    padding: 0.5rem 1rem;
    background: var(--s938-bg-light);
    border-radius: var(--s938-radius);
    transition: all 0.3s ease;
}

.s938-footer-link:hover {
    color: var(--s938-secondary);
    background: var(--s938-primary);
}

.s938-promo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.s938-promo-btn {
    padding: 1rem 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    background: var(--s938-gradient);
    color: var(--s938-white);
    border: none;
    border-radius: var(--s938-radius);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s938-promo-btn:hover {
    transform: scale(1.05);
}

.s938-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--s938-gray);
    padding-top: 1.5rem;
    border-top: 1px solid var(--s938-bg-light);
}

/* Bottom Navigation */
.s938-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(33, 47, 61, 0.98) 0%, var(--s938-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0 0.5rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.s938-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--s938-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.s938-nav-btn:hover,
.s938-nav-btn.s938-active {
    color: var(--s938-secondary);
    background: rgba(250, 128, 114, 0.1);
}

.s938-nav-btn:hover {
    transform: scale(1.1);
}

.s938-nav-btn i,
.s938-nav-btn span.iconify {
    font-size: 24px;
    margin-bottom: 0.3rem;
}

.s938-nav-btn span {
    font-size: 11px;
    font-weight: 500;
}

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

    main {
        padding-bottom: 0;
    }

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

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

/* Utility Classes */
.s938-text-center { text-align: center; }
.s938-text-left { text-align: left; }
.s938-mb-1 { margin-bottom: 1rem; }
.s938-mb-2 { margin-bottom: 2rem; }
.s938-mt-2 { margin-top: 2rem; }
.s938-hidden { display: none; }
.s938-flex { display: flex; }
.s938-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* Touch Feedback */
.s938-touch-active {
    opacity: 0.7;
    transform: scale(0.98);
}
