/**
 * CasinoPlusPH Theme Stylesheet
 * Prefix: s6c4-
 * Color Palette: #00CED1 (Cyan) | #1A1A1A (Dark) | #00695C (Teal) | #80CBC4 (Light Teal)
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --s6c4-primary: #00CED1;
    --s6c4-secondary: #00695C;
    --s6c4-accent: #80CBC4;
    --s6c4-bg-dark: #1A1A1A;
    --s6c4-bg-darker: #0D0D0D;
    --s6c4-bg-card: #252525;
    --s6c4-text-light: #FFFFFF;
    --s6c4-text-muted: #B0B0B0;
    --s6c4-border: #333333;
    --s6c4-gradient: linear-gradient(135deg, #00695C 0%, #00CED1 100%);
    --s6c4-shadow: 0 4px 15px rgba(0, 206, 209, 0.3);
    --s6c4-radius: 12px;
    --s6c4-radius-sm: 8px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--s6c4-bg-dark);
    color: var(--s6c4-text-light);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.s6c4-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

.s6c4-wrapper {
    padding: 20px 16px;
}

/* Header */
.s6c4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--s6c4-bg-darker);
    border-bottom: 1px solid var(--s6c4-border);
    z-index: 1000;
    padding: 10px 16px;
}

.s6c4-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.s6c4-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.s6c4-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.s6c4-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--s6c4-primary);
}

.s6c4-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.s6c4-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--s6c4-radius-sm);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.s6c4-btn-primary {
    background: var(--s6c4-gradient);
    color: var(--s6c4-text-light);
    box-shadow: var(--s6c4-shadow);
}

.s6c4-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 206, 209, 0.4);
}

.s6c4-btn-outline {
    background: transparent;
    color: var(--s6c4-primary);
    border: 2px solid var(--s6c4-primary);
}

.s6c4-btn-outline:hover {
    background: var(--s6c4-primary);
    color: var(--s6c4-bg-dark);
}

/* Hamburger Menu */
.s6c4-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.s6c4-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--s6c4-primary);
    transition: all 0.3s ease;
}

.s6c4-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.s6c4-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.s6c4-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.s6c4-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--s6c4-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 70px 20px 20px;
    overflow-y: auto;
}

.s6c4-menu-active {
    right: 0;
}

.s6c4-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.s6c4-overlay-active {
    opacity: 1;
    visibility: visible;
}

.s6c4-nav-list {
    list-style: none;
}

.s6c4-nav-item {
    margin-bottom: 8px;
}

.s6c4-nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--s6c4-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: var(--s6c4-radius-sm);
    transition: all 0.3s ease;
}

.s6c4-nav-link:hover {
    background: var(--s6c4-bg-card);
    color: var(--s6c4-primary);
}

/* Main Content */
.s6c4-main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    .s6c4-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.s6c4-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--s6c4-radius);
    margin: 16px 0;
}

.s6c4-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.s6c4-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.s6c4-slide-active {
    opacity: 1;
    position: relative;
}

.s6c4-slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.s6c4-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

.s6c4-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.s6c4-dot-active {
    background: var(--s6c4-primary);
    transform: scale(1.2);
}

/* Section Titles */
.s6c4-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--s6c4-text-light);
    text-align: center;
}

.s6c4-section-title span {
    color: var(--s6c4-primary);
}

/* Game Grid */
.s6c4-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.s6c4-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s6c4-game-item:hover {
    transform: scale(1.05);
}

.s6c4-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--s6c4-radius-sm);
    object-fit: cover;
    background: var(--s6c4-bg-card);
}

.s6c4-game-name {
    font-size: 1.1rem;
    color: var(--s6c4-text-light);
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Section */
.s6c4-category-section {
    margin-bottom: 24px;
}

.s6c4-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--s6c4-border);
}

.s6c4-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s6c4-primary);
}

/* Cards */
.s6c4-card {
    background: var(--s6c4-bg-card);
    border-radius: var(--s6c4-radius);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--s6c4-border);
}

.s6c4-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s6c4-primary);
    margin-bottom: 12px;
}

.s6c4-card-text {
    font-size: 1.3rem;
    color: var(--s6c4-text-muted);
    line-height: 1.6;
}

/* Info Box */
.s6c4-info-box {
    background: linear-gradient(135deg, var(--s6c4-bg-card) 0%, var(--s6c4-bg-darker) 100%);
    border-left: 4px solid var(--s6c4-primary);
    padding: 16px;
    margin: 16px 0;
    border-radius: 0 var(--s6c4-radius-sm) var(--s6c4-radius-sm) 0;
}

/* Promo Link */
.s6c4-promo-link {
    color: var(--s6c4-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.s6c4-promo-link:hover {
    color: var(--s6c4-accent);
    text-decoration: underline;
}

/* Footer */
.s6c4-footer {
    background: var(--s6c4-bg-darker);
    border-top: 1px solid var(--s6c4-border);
    padding: 24px 16px;
    margin-top: 24px;
}

.s6c4-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.s6c4-footer-link {
    color: var(--s6c4-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.s6c4-footer-link:hover {
    color: var(--s6c4-primary);
}

.s6c4-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.s6c4-partner-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
    background: var(--s6c4-bg-card);
    padding: 4px;
}

.s6c4-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--s6c4-text-muted);
}

/* Bottom Navigation */
.s6c4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--s6c4-bg-darker);
    border-top: 1px solid var(--s6c4-border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
}

.s6c4-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 60px;
    min-height: 48px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.s6c4-nav-btn:hover {
    transform: scale(1.1);
}

.s6c4-nav-btn:hover .s6c4-nav-icon {
    color: var(--s6c4-primary);
}

.s6c4-nav-icon {
    font-size: 22px;
    color: var(--s6c4-text-muted);
    transition: color 0.3s ease;
}

.s6c4-nav-label {
    font-size: 1rem;
    color: var(--s6c4-text-muted);
    transition: color 0.3s ease;
}

.s6c4-nav-btn:hover .s6c4-nav-label {
    color: var(--s6c4-primary);
}

.s6c4-nav-active .s6c4-nav-icon,
.s6c4-nav-active .s6c4-nav-label {
    color: var(--s6c4-primary);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .s6c4-bottom-nav {
        display: none;
    }
}

/* FAQ Section */
.s6c4-faq-item {
    background: var(--s6c4-bg-card);
    border-radius: var(--s6c4-radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

.s6c4-faq-question {
    padding: 14px 16px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--s6c4-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s6c4-faq-answer {
    padding: 0 16px 14px;
    font-size: 1.2rem;
    color: var(--s6c4-text-muted);
    line-height: 1.6;
}

/* Feature List */
.s6c4-feature-list {
    list-style: none;
}

.s6c4-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--s6c4-border);
}

.s6c4-feature-icon {
    font-size: 20px;
    color: var(--s6c4-primary);
    flex-shrink: 0;
}

.s6c4-feature-text {
    font-size: 1.3rem;
    color: var(--s6c4-text-light);
}

/* RTP Table */
.s6c4-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
}

.s6c4-rtp-table th,
.s6c4-rtp-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--s6c4-border);
}

.s6c4-rtp-table th {
    color: var(--s6c4-primary);
    font-weight: 600;
}

.s6c4-rtp-table td {
    color: var(--s6c4-text-muted);
}

/* Utility Classes */
.s6c4-text-center { text-align: center; }
.s6c4-text-primary { color: var(--s6c4-primary); }
.s6c4-text-muted { color: var(--s6c4-text-muted); }
.s6c4-mb-16 { margin-bottom: 16px; }
.s6c4-mt-16 { margin-top: 16px; }
.s6c4-hidden { display: none; }

/* Responsive */
@media (max-width: 380px) {
    .s6c4-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
