/**
 * Nicep Club - Theme Stylesheet
 * Version: 1.0.0
 * Prefix: s511-
 * Colors: #ADB5BD | #FFFACD | #FFD700 | #0A0A0A
 */

/* CSS Variables */
:root {
    --s511-primary: #FFD700;
    --s511-secondary: #FFFACD;
    --s511-accent: #ADB5BD;
    --s511-bg-dark: #0A0A0A;
    --s511-bg-card: #1A1A1A;
    --s511-text-light: #FFFACD;
    --s511-text-muted: #ADB5BD;
    --s511-border: #2A2A2A;
    --s511-gradient: linear-gradient(135deg, #FFD700 0%, #FFFACD 100%);
}

/* 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;
    background-color: var(--s511-bg-dark);
    color: var(--s511-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

/* Container */
.s511-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.s511-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #0A0A0A 0%, #1A1A1A 100%);
    border-bottom: 1px solid var(--s511-border);
    padding: 0.8rem 1rem;
}

.s511-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.s511-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.s511-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.s511-logo-text {
    color: var(--s511-primary);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.s511-header-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.s511-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.s511-btn-primary {
    background: var(--s511-gradient);
    color: var(--s511-bg-dark);
}

.s511-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.s511-btn-outline {
    background: transparent;
    border: 1px solid var(--s511-primary);
    color: var(--s511-primary);
}

.s511-btn-outline:hover {
    background: var(--s511-primary);
    color: var(--s511-bg-dark);
}

.s511-menu-toggle {
    background: none;
    border: none;
    color: var(--s511-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
}

/* Mobile Menu */
.s511-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s511-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    border-left: 1px solid var(--s511-border);
}

.s511-menu-active {
    right: 0;
}

.s511-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--s511-border);
}

.s511-menu-title {
    color: var(--s511-primary);
    font-size: 1.6rem;
    font-weight: 700;
}

.s511-menu-close {
    background: none;
    border: none;
    color: var(--s511-text-muted);
    font-size: 2rem;
    cursor: pointer;
}

.s511-menu-links {
    list-style: none;
}

.s511-menu-links li {
    margin-bottom: 0.8rem;
}

.s511-menu-links a {
    color: var(--s511-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.8rem 1rem;
    display: block;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.s511-menu-links a:hover {
    background: var(--s511-bg-card);
    color: var(--s511-primary);
}

/* Overlay */
.s511-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;
}

.s511-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.s511-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Carousel */
.s511-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 1rem 0;
}

.s511-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.s511-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.s511-slide-active {
    opacity: 1;
}

.s511-slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.s511-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.s511-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.s511-dot-active {
    background: var(--s511-primary);
    transform: scale(1.2);
}

/* Sections */
.s511-section {
    padding: 1.5rem 0;
}

.s511-section-title {
    color: var(--s511-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.s511-section-title i {
    font-size: 1.6rem;
}

/* Game Grid */
.s511-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.s511-game-card {
    background: var(--s511-bg-card);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--s511-border);
}

.s511-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--s511-primary);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.s511-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.s511-game-name {
    font-size: 1rem;
    color: var(--s511-text-light);
    text-align: center;
    padding: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Cards */
.s511-card {
    background: var(--s511-bg-card);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--s511-border);
}

.s511-card-title {
    color: var(--s511-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.s511-card-text {
    color: var(--s511-text-muted);
    font-size: 1.3rem;
    line-height: 1.6;
}

.s511-card-text a {
    color: var(--s511-primary);
    text-decoration: none;
    font-weight: 600;
}

.s511-card-text a:hover {
    text-decoration: underline;
}

/* Feature List */
.s511-features {
    display: grid;
    gap: 0.8rem;
}

.s511-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--s511-bg-card);
    border-radius: 8px;
    border-left: 3px solid var(--s511-primary);
}

.s511-feature-icon {
    color: var(--s511-primary);
    font-size: 1.8rem;
    min-width: 24px;
}

.s511-feature-content h4 {
    color: var(--s511-text-light);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.s511-feature-content p {
    color: var(--s511-text-muted);
    font-size: 1.2rem;
}

/* Promo Links */
.s511-promo-link {
    color: var(--s511-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.s511-promo-link:hover {
    text-decoration: underline;
}

/* Footer */
.s511-footer {
    background: var(--s511-bg-card);
    border-top: 1px solid var(--s511-border);
    padding: 1.5rem 1rem 2rem;
    margin-top: 1rem;
}

.s511-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.s511-footer-links a {
    color: var(--s511-text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.s511-footer-links a:hover {
    color: var(--s511-primary);
    background: rgba(255, 215, 0, 0.1);
}

.s511-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.s511-partners img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.s511-partners img:hover {
    opacity: 1;
}

.s511-copyright {
    text-align: center;
    color: var(--s511-text-muted);
    font-size: 1.1rem;
}

/* Bottom Navigation */
.s511-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, #1A1A1A 0%, #0A0A0A 100%);
    border-top: 1px solid var(--s511-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.s511-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border-radius: 8px;
}

.s511-nav-item:hover {
    background: rgba(255, 215, 0, 0.1);
}

.s511-nav-item.active {
    color: var(--s511-primary);
}

.s511-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

.s511-nav-item span {
    font-size: 10px;
    color: var(--s511-text-muted);
}

.s511-nav-item.active span {
    color: var(--s511-primary);
}

/* Desktop Hide Bottom Nav */
@media (min-width: 769px) {
    .s511-bottom-nav {
        display: none;
    }

    .s511-main {
        padding-bottom: 20px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .s511-main {
        padding-bottom: 80px;
    }
}

@media (max-width: 360px) {
    .s511-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .s511-btn {
        padding: 0.5rem 0.8rem;
        font-size: 1.1rem;
    }
}

/* Typography */
.s511-h1 {
    font-size: 2rem;
    color: var(--s511-primary);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.s511-h2 {
    font-size: 1.7rem;
    color: var(--s511-text-light);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.s511-h3 {
    font-size: 1.5rem;
    color: var(--s511-text-light);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.s511-text {
    color: var(--s511-text-muted);
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* List Styles */
.s511-list {
    list-style: none;
    padding: 0;
}

.s511-list li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--s511-text-muted);
    font-size: 1.3rem;
}

.s511-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--s511-primary);
}

/* RTP Table */
.s511-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
}

.s511-rtp-table th,
.s511-rtp-table td {
    padding: 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--s511-border);
}

.s511-rtp-table th {
    color: var(--s511-primary);
    font-weight: 600;
}

.s511-rtp-table td {
    color: var(--s511-text-muted);
}

/* Badge */
.s511-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
}

.s511-badge-hot {
    background: #FF4444;
    color: white;
}

.s511-badge-new {
    background: #4CAF50;
    color: white;
}

/* Utility */
.s511-text-center {
    text-align: center;
}

.s511-mt-1 {
    margin-top: 0.5rem;
}

.s511-mb-1 {
    margin-bottom: 0.5rem;
}

.s511-mt-2 {
    margin-top: 1rem;
}

.s511-mb-2 {
    margin-bottom: 1rem;
}
