/**
 * ll777 ph - Main Stylesheet
 * All classes use prefix: s11c-
 * Mobile-first design with max-width: 430px
 */

/* CSS Variables */
:root {
    --s11c-primary: #1E90FF;
    --s11c-primary-dark: #4169E1;
    --s11c-secondary: #E9967A;
    --s11c-bg-dark: #1C2833;
    --s11c-bg-darker: #0D151C;
    --s11c-text-light: #F5F5F5;
    --s11c-text-muted: #B0B0B0;
    --s11c-accent: #0000FF;
    --s11c-success: #28A745;
    --s11c-warning: #FFC107;
    --s11c-border: rgba(30, 144, 255, 0.3);
    --s11c-shadow: rgba(0, 0, 0, 0.3);
    --s11c-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--s11c-font-primary);
    background-color: var(--s11c-bg-dark);
    color: var(--s11c-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Mobile-first container */
.s11c-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header Styles */
.s11c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--s11c-bg-dark) 0%, var(--s11c-bg-darker) 100%);
    border-bottom: 1px solid var(--s11c-border);
    box-shadow: 0 2px 10px var(--s11c-shadow);
}

.s11c-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    min-height: 56px;
}

.s11c-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s11c-logo img {
    width: 32px;
    height: 32px;
}

.s11c-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--s11c-primary), var(--s11c-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s11c-header-actions {
    display: flex;
    gap: 0.8rem;
}

.s11c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px;
    min-width: 80px;
}

.s11c-btn:active {
    transform: scale(0.95);
}

.s11c-btn-primary {
    background: linear-gradient(135deg, var(--s11c-primary) 0%, var(--s11c-primary-dark) 100%);
    color: var(--s11c-text-light);
    box-shadow: 0 2px 8px rgba(30, 144, 255, 0.4);
}

.s11c-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(30, 144, 255, 0.6);
    transform: translateY(-1px);
}

.s11c-btn-secondary {
    background: linear-gradient(135deg, var(--s11c-secondary) 0%, #D4856A 100%);
    color: var(--s11c-bg-dark);
    box-shadow: 0 2px 8px rgba(233, 150, 122, 0.4);
}

.s11c-btn-secondary:hover {
    box-shadow: 0 4px 12px rgba(233, 150, 122, 0.6);
    transform: translateY(-1px);
}

/* Menu Button */
.s11c-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(30, 144, 255, 0.1);
    border: 1px solid var(--s11c-border);
    border-radius: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.s11c-menu-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--s11c-primary);
}

/* Mobile Menu */
.s11c-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.s11c-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.s11c-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, var(--s11c-bg-dark) 0%, var(--s11c-bg-darker) 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px var(--s11c-shadow);
}

.s11c-menu-open {
    right: 0;
}

.s11c-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem;
    border-bottom: 1px solid var(--s11c-border);
}

.s11c-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.s11c-menu-close svg {
    width: 24px;
    height: 24px;
    fill: var(--s11c-text-light);
}

.s11c-menu-list {
    list-style: none;
    padding: 1.2rem 0;
}

.s11c-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.s11c-menu-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    color: var(--s11c-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.s11c-menu-link:hover {
    background: rgba(30, 144, 255, 0.1);
    color: var(--s11c-primary);
}

.s11c-menu-link svg {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    fill: currentColor;
}

/* Main Content */
.s11c-main {
    padding-top: 70px;
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Hero Section */
.s11c-hero {
    padding: 1.6rem 0;
}

.s11c-hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--s11c-text-light) 0%, var(--s11c-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Carousel */
.s11c-carousel {
    position: relative;
    width: 100%;
    border-radius: 1.2rem;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--s11c-shadow);
}

.s11c-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.s11c-carousel-item {
    min-width: 100%;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.s11c-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.s11c-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.s11c-carousel-dot.active {
    background: var(--s11c-primary);
    width: 24px;
    border-radius: 4px;
}

/* Section Styles */
.s11c-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--s11c-border);
}

.s11c-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--s11c-text-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s11c-section-title svg {
    width: 24px;
    height: 24px;
    fill: var(--s11c-primary);
}

/* Game Grid */
.s11c-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.s11c-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1) 0%, rgba(65, 105, 225, 0.05) 100%);
    border: 1px solid var(--s11c-border);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.s11c-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
    border-color: var(--s11c-primary);
}

.s11c-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.6rem;
    margin-bottom: 0.6rem;
}

.s11c-game-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--s11c-text-light);
    text-align: center;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Game Category Section */
.s11c-category-section {
    padding: 1.6rem 0;
}

.s11c-category-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--s11c-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.s11c-category-title svg {
    width: 20px;
    height: 20px;
    fill: var(--s11c-secondary);
}

/* Info Cards */
.s11c-info-card {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.08) 0%, rgba(233, 150, 122, 0.05) 100%);
    border: 1px solid var(--s11c-border);
    border-radius: 1.2rem;
    padding: 1.6rem;
    margin-bottom: 1.6rem;
}

.s11c-info-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--s11c-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.s11c-info-card h3 svg {
    width: 20px;
    height: 20px;
    fill: var(--s11c-secondary);
}

.s11c-info-card p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--s11c-text-muted);
    margin-bottom: 1rem;
}

.s11c-info-card ul {
    list-style: none;
    padding: 0;
}

.s11c-info-card li {
    padding: 0.6rem 0;
    padding-left: 1.6rem;
    position: relative;
    font-size: 1.2rem;
    color: var(--s11c-text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.s11c-info-card li:last-child {
    border-bottom: none;
}

.s11c-info-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--s11c-primary);
    border-radius: 50%;
}

/* FAQ Section */
.s11c-faq-item {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.05) 0%, transparent 100%);
    border: 1px solid var(--s11c-border);
    border-radius: 1rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.s11c-faq-question {
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--s11c-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.s11c-faq-question:hover {
    color: var(--s11c-primary);
}

.s11c-faq-question svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.s11c-faq-item.open .s11c-faq-question svg {
    transform: rotate(180deg);
}

.s11c-faq-answer {
    padding: 0 1.2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.s11c-faq-item.open .s11c-faq-answer {
    padding: 0 1.2rem 1.2rem;
    max-height: 500px;
}

.s11c-faq-answer p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--s11c-text-muted);
}

/* Feature Grid */
.s11c-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.s11c-feature-item {
    background: linear-gradient(135deg, rgba(233, 150, 122, 0.1) 0%, rgba(30, 144, 255, 0.05) 100%);
    border: 1px solid var(--s11c-border);
    border-radius: 1rem;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.s11c-feature-item:hover {
    transform: translateY(-2px);
    border-color: var(--s11c-secondary);
}

.s11c-feature-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--s11c-primary) 0%, var(--s11c-secondary) 100%);
    border-radius: 50%;
}

.s11c-feature-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--s11c-text-light);
}

.s11c-feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--s11c-text-light);
}

.s11c-feature-desc {
    font-size: 1rem;
    color: var(--s11c-text-muted);
    line-height: 1.4;
}

/* CTA Button */
.s11c-cta-container {
    padding: 2rem 0;
    text-align: center;
}

.s11c-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 2.4rem;
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--s11c-primary) 0%, var(--s11c-primary-dark) 100%);
    color: var(--s11c-text-light);
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 52px;
}

.s11c-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.6);
}

.s11c-cta-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Bottom Navigation */
.s11c-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 62px;
    background: linear-gradient(180deg, var(--s11c-bg-dark) 0%, var(--s11c-bg-darker) 100%);
    border-top: 1px solid var(--s11c-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.4rem 0.8rem;
    z-index: 1000;
    box-shadow: 0 -2px 15px var(--s11c-shadow);
}

.s11c-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 56px;
    min-height: 52px;
    padding: 0.4rem 0.6rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.8rem;
    text-decoration: none;
}

.s11c-nav-btn:hover {
    background: rgba(30, 144, 255, 0.1);
}

.s11c-nav-btn.active {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.2) 0%, rgba(233, 150, 122, 0.1) 100%);
}

.s11c-nav-btn span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--s11c-text-muted);
    transition: color 0.3s ease;
}

.s11c-nav-btn.active span {
    color: var(--s11c-primary);
    font-weight: 600;
}

.s11c-nav-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.s11c-nav-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--s11c-text-muted);
    transition: all 0.3s ease;
}

.s11c-nav-btn.active .s11c-nav-icon svg {
    fill: var(--s11c-primary);
}

/* Footer */
.s11c-footer {
    background: linear-gradient(180deg, var(--s11c-bg-darker) 0%, var(--s11c-bg-dark) 100%);
    border-top: 1px solid var(--s11c-border);
    padding: 2rem 1.2rem;
    margin-top: 2rem;
}

.s11c-footer-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, var(--s11c-primary), var(--s11c-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s11c-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.6rem;
}

.s11c-footer-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem;
    font-size: 1.1rem;
    color: var(--s11c-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0.6rem;
}

.s11c-footer-link:hover {
    color: var(--s11c-primary);
    background: rgba(30, 144, 255, 0.1);
}

.s11c-footer-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.s11c-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.6rem 0;
    justify-content: center;
}

.s11c-partner-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    padding: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--s11c-border);
    border-radius: 0.6rem;
}

.s11c-copyright {
    text-align: center;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    color: var(--s11c-text-muted);
}

/* Internal Links */
.s11c-internal-link {
    color: var(--s11c-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px dashed var(--s11c-primary);
}

.s11c-internal-link:hover {
    color: var(--s11c-secondary);
    border-bottom-color: var(--s11c-secondary);
}

/* RTP Table */
.s11c-rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.s11c-rtp-table th,
.s11c-rtp-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--s11c-border);
}

.s11c-rtp-table th {
    background: rgba(30, 144, 255, 0.1);
    font-weight: 600;
    color: var(--s11c-primary);
}

.s11c-rtp-table td {
    color: var(--s11c-text-muted);
}

.s11c-rtp-high {
    color: var(--s11c-success) !important;
    font-weight: 600;
}

.s11c-rtp-med {
    color: var(--s11c-warning) !important;
}

/* Responsive - Desktop */
@media (min-width: 769px) {
    .s11c-bottom-nav {
        display: none;
    }

    .s11c-main {
        padding-bottom: 2rem;
    }

    .s11c-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .s11c-container {
        max-width: 1200px;
    }
}

/* Animations */
@keyframes s11cPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(30, 144, 255, 0);
    }
}

@keyframes s11cFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.s11c-fade-in {
    animation: s11cFadeIn 0.5s ease forwards;
}

/* Utility Classes */
.s11c-text-center {
    text-align: center;
}

.s11c-mb-1 {
    margin-bottom: 1rem;
}

.s11c-mb-2 {
    margin-bottom: 2rem;
}

.s11c-mt-1 {
    margin-top: 1rem;
}

.s11c-mt-2 {
    margin-top: 2rem;
}
