/**
 * CC6PH8 Core Stylesheet
 * Version: 1.0.0
 * Prefix: s37d-
 * Color Palette: #00CED1 | #48D1CC | #00FFFF | #6C757D | #273746
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --s37d-primary: #00CED1;
    --s37d-secondary: #48D1CC;
    --s37d-accent: #00FFFF;
    --s37d-text-muted: #6C757D;
    --s37d-bg-dark: #273746;
    --s37d-bg-darker: #1a252f;
    --s37d-bg-card: #2d3e4f;
    --s37d-text-light: #ffffff;
    --s37d-text-dark: #1a252f;
    --s37d-gradient-primary: linear-gradient(135deg, #00CED1 0%, #48D1CC 100%);
    --s37d-gradient-dark: linear-gradient(180deg, #273746 0%, #1a252f 100%);
    --s37d-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.15);
    --s37d-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
    --s37d-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
    --s37d-radius-sm: 6px;
    --s37d-radius-md: 10px;
    --s37d-radius-lg: 16px;
    --s37d-radius-full: 50px;
    --s37d-vh: 1vh;
}

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

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

body {
    font-family: 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--s37d-text-light);
    background: var(--s37d-bg-darker);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
    color: var(--s37d-accent);
}

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

ul, ol {
    list-style: none;
}

/* ============================================
   Header Styles
   ============================================ */
.s37d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(39, 55, 70, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 206, 209, 0.2);
    transition: all 0.3s ease;
}

.s37d-header-scrolled {
    background: rgba(26, 37, 47, 0.98);
    box-shadow: var(--s37d-shadow-md);
}

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

.s37d-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.s37d-logo img {
    width: 32px;
    height: 32px;
    border-radius: var(--s37d-radius-sm);
}

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

.s37d-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.s37d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: var(--s37d-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

.s37d-btn-primary {
    background: var(--s37d-gradient-primary);
    color: var(--s37d-text-dark);
}

.s37d-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 206, 209, 0.4);
    color: var(--s37d-text-dark);
}

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

.s37d-btn-secondary:hover {
    background: var(--s37d-primary);
    color: var(--s37d-text-dark);
}

.s37d-menu-btn {
    background: transparent;
    border: none;
    color: var(--s37d-text-light);
    font-size: 2.4rem;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.s37d-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;
}

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

.s37d-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 206, 209, 0.2);
}

.s37d-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s37d-primary);
}

.s37d-menu-close {
    background: transparent;
    border: none;
    color: var(--s37d-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 4px;
}

.s37d-menu-nav {
    padding: 16px 0;
}

.s37d-menu-item {
    display: block;
    padding: 14px 20px;
    color: var(--s37d-text-light);
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.s37d-menu-item:hover {
    background: rgba(0, 206, 209, 0.1);
    color: var(--s37d-primary);
}

.s37d-menu-item i {
    margin-right: 10px;
    width: 20px;
}

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

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

.s37d-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================
   Carousel/Slider
   ============================================ */
.s37d-carousel {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.s37d-slides-wrapper {
    position: relative;
}

.s37d-slide {
    display: none;
    cursor: pointer;
}

.s37d-slide-active {
    display: block;
}

.s37d-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--s37d-radius-md);
}

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

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

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

/* ============================================
   Section Styles
   ============================================ */
.s37d-section {
    padding: 24px 0;
}

.s37d-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--s37d-text-light);
    margin-bottom: 16px;
    position: relative;
    padding-left: 16px;
}

.s37d-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--s37d-gradient-primary);
    border-radius: 2px;
}

/* ============================================
   Game Grid
   ============================================ */
.s37d-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.s37d-game-card {
    background: var(--s37d-bg-card);
    border-radius: var(--s37d-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 206, 209, 0.1);
}

.s37d-game-card:hover {
    transform: translateY(-4px);
    border-color: var(--s37d-primary);
    box-shadow: 0 8px 20px rgba(0, 206, 209, 0.2);
}

.s37d-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.s37d-game-name {
    padding: 8px;
    font-size: 1.1rem;
    color: var(--s37d-text-light);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--s37d-bg-darker);
}

/* ============================================
   Category Section
   ============================================ */
.s37d-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.s37d-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s37d-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.s37d-category-title i {
    font-size: 1.8rem;
}

/* ============================================
   Content Cards
   ============================================ */
.s37d-card {
    background: var(--s37d-bg-card);
    border-radius: var(--s37d-radius-md);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 206, 209, 0.1);
}

.s37d-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--s37d-primary);
    margin-bottom: 12px;
}

.s37d-card-text {
    font-size: 1.4rem;
    color: var(--s37d-text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}

.s37d-card-text:last-child {
    margin-bottom: 0;
}

/* ============================================
   Buttons & Links
   ============================================ */
.s37d-link-text {
    color: var(--s37d-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s37d-link-text:hover {
    color: var(--s37d-accent);
    text-decoration: underline;
}

.s37d-btn-large {
    padding: 14px 32px;
    font-size: 1.6rem;
    min-height: 48px;
}

.s37d-btn-block {
    width: 100%;
}

/* ============================================
   Features Grid
   ============================================ */
.s37d-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.s37d-feature-item {
    background: var(--s37d-bg-darker);
    padding: 16px;
    border-radius: var(--s37d-radius-md);
    text-align: center;
    border: 1px solid rgba(0, 206, 209, 0.1);
}

.s37d-feature-icon {
    font-size: 2.8rem;
    color: var(--s37d-primary);
    margin-bottom: 8px;
}

.s37d-feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--s37d-text-light);
    margin-bottom: 4px;
}

.s37d-feature-desc {
    font-size: 1.2rem;
    color: var(--s37d-text-muted);
}

/* ============================================
   Testimonials
   ============================================ */
.s37d-testimonial {
    background: var(--s37d-bg-card);
    border-radius: var(--s37d-radius-md);
    padding: 16px;
    margin-bottom: 12px;
    border-left: 3px solid var(--s37d-primary);
}

.s37d-testimonial-text {
    font-size: 1.4rem;
    color: var(--s37d-text-light);
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.5;
}

.s37d-testimonial-author {
    font-size: 1.2rem;
    color: var(--s37d-primary);
    font-weight: 600;
}

/* ============================================
   Payment Methods
   ============================================ */
.s37d-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.s37d-payment-item {
    background: var(--s37d-bg-darker);
    padding: 10px 16px;
    border-radius: var(--s37d-radius-sm);
    font-size: 1.2rem;
    color: var(--s37d-text-light);
    border: 1px solid rgba(0, 206, 209, 0.2);
}

/* ============================================
   Footer
   ============================================ */
.s37d-footer {
    background: var(--s37d-bg-dark);
    padding: 32px 16px;
    border-top: 1px solid rgba(0, 206, 209, 0.2);
}

.s37d-footer-brand {
    text-align: center;
    margin-bottom: 24px;
}

.s37d-footer-desc {
    font-size: 1.3rem;
    color: var(--s37d-text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.s37d-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.s37d-footer-link {
    padding: 8px 14px;
    background: var(--s37d-gradient-primary);
    color: var(--s37d-text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--s37d-radius-sm);
    transition: all 0.3s ease;
}

.s37d-footer-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 206, 209, 0.3);
    color: var(--s37d-text-dark);
}

.s37d-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.s37d-footer-nav a {
    font-size: 1.3rem;
    color: var(--s37d-text-muted);
}

.s37d-footer-nav a:hover {
    color: var(--s37d-primary);
}

.s37d-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--s37d-text-muted);
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */
.s37d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--s37d-bg-dark);
    border-top: 1px solid rgba(0, 206, 209, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

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

.s37d-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--s37d-radius-md);
    padding: 4px 8px;
}

.s37d-nav-item:hover {
    background: rgba(0, 206, 209, 0.1);
}

.s37d-nav-item i {
    font-size: 22px;
    color: var(--s37d-text-muted);
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.s37d-nav-item span {
    font-size: 1rem;
    color: var(--s37d-text-muted);
    transition: all 0.3s ease;
}

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

.s37d-nav-item:active {
    transform: scale(0.95);
}

/* ============================================
   Utility Classes
   ============================================ */
.s37d-text-center { text-align: center; }
.s37d-text-left { text-align: left; }
.s37d-text-right { text-align: right; }
.s37d-mb-0 { margin-bottom: 0; }
.s37d-mb-1 { margin-bottom: 8px; }
.s37d-mb-2 { margin-bottom: 16px; }
.s37d-mb-3 { margin-bottom: 24px; }
.s37d-mb-4 { margin-bottom: 32px; }
.s37d-mt-2 { margin-top: 16px; }
.s37d-mt-3 { margin-top: 24px; }
.s37d-py-2 { padding-top: 16px; padding-bottom: 16px; }
.s37d-py-3 { padding-top: 24px; padding-bottom: 24px; }

.s37d-hidden-mobile {
    display: none;
}

@media (min-width: 769px) {
    .s37d-hidden-mobile {
        display: block;
    }
    .s37d-hidden-desktop {
        display: none;
    }
}

/* Touch feedback */
.s37d-touch-active {
    opacity: 0.8;
    transform: scale(0.98);
}

/* Animation */
@keyframes s37d-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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