/**
 * Super Ace - Layout Stylesheet
 * Website: superace.sbs
 * Prefix: sb3e-
 * Colors: #FFE135 (Gold) | #B8860B (Dark Gold) | #2C2C2C (Dark) | #FFFFFF (White)
 */

/* CSS Variables */
:root {
    --sb3e-primary: #FFE135;
    --sb3e-secondary: #B8860B;
    --sb3e-bg-dark: #2C2C2C;
    --sb3e-bg-darker: #1a1a1a;
    --sb3e-text-light: #FFFFFF;
    --sb3e-text-muted: #cccccc;
    --sb3e-accent: #FFD700;
    --sb3e-success: #4CAF50;
    --sb3e-gradient: linear-gradient(135deg, #FFE135 0%, #B8860B 100%);
    --sb3e-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --sb3e-radius: 12px;
    --sb3e-radius-sm: 8px;
}

/* Base Reset */
*, *::before, *::after {
    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;
    background-color: var(--sb3e-bg-dark);
    color: var(--sb3e-text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.sb3e-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
.sb3e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--sb3e-bg-darker) 0%, rgba(26, 26, 26, 0.95) 100%);
    padding: 1rem 0;
    box-shadow: var(--sb3e-shadow);
    transition: all 0.3s ease;
}

.sb3e-header-scrolled {
    background: rgba(26, 26, 26, 0.98);
    padding: 0.8rem 0;
}

.sb3e-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.sb3e-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.sb3e-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.sb3e-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--sb3e-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sb3e-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sb3e-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(--sb3e-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px;
}

.sb3e-btn-primary {
    background: var(--sb3e-gradient);
    color: var(--sb3e-bg-dark);
}

.sb3e-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 225, 53, 0.4);
}

.sb3e-btn-outline {
    background: transparent;
    border: 2px solid var(--sb3e-primary);
    color: var(--sb3e-primary);
}

.sb3e-btn-outline:hover {
    background: var(--sb3e-primary);
    color: var(--sb3e-bg-dark);
}

.sb3e-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-height: 44px;
    justify-content: center;
}

.sb3e-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--sb3e-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.sb3e-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--sb3e-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.sb3e-menu-active {
    right: 0;
}

.sb3e-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--sb3e-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

.sb3e-menu-nav {
    margin-top: 5rem;
}

.sb3e-menu-nav ul {
    list-style: none;
}

.sb3e-menu-nav li {
    border-bottom: 1px solid rgba(255, 225, 53, 0.1);
}

.sb3e-menu-nav a {
    display: block;
    padding: 1.5rem 0;
    color: var(--sb3e-text-light);
    text-decoration: none;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.sb3e-menu-nav a:hover {
    color: var(--sb3e-primary);
}

.sb3e-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;
}

.sb3e-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel/Slider */
.sb3e-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--sb3e-radius) var(--sb3e-radius);
}

.sb3e-slides {
    position: relative;
    width: 100%;
}

.sb3e-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}

.sb3e-slide-active {
    display: block;
}

.sb3e-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.sb3e-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.sb3e-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sb3e-dot-active {
    background: var(--sb3e-primary);
    transform: scale(1.2);
}

/* Section Styles */
.sb3e-section {
    padding: 3rem 0;
}

.sb3e-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--sb3e-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sb3e-section-subtitle {
    font-size: 1.6rem;
    color: var(--sb3e-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.sb3e-game-section {
    margin-bottom: 3rem;
}

.sb3e-category-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--sb3e-primary);
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--sb3e-primary);
}

.sb3e-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sb3e-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sb3e-game-item:hover {
    transform: scale(1.05);
}

.sb3e-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--sb3e-radius-sm);
    overflow: hidden;
    background: var(--sb3e-bg-darker);
    margin-bottom: 0.5rem;
}

.sb3e-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sb3e-game-name {
    font-size: 1.1rem;
    color: var(--sb3e-text-light);
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Cards */
.sb3e-card {
    background: linear-gradient(145deg, rgba(44, 44, 44, 0.8) 0%, rgba(26, 26, 26, 0.9) 100%);
    border-radius: var(--sb3e-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 225, 53, 0.1);
    transition: all 0.3s ease;
}

.sb3e-card:hover {
    border-color: rgba(255, 225, 53, 0.3);
    box-shadow: 0 8px 30px rgba(255, 225, 53, 0.1);
}

.sb3e-card-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--sb3e-primary);
    margin-bottom: 1rem;
}

.sb3e-card-text {
    font-size: 1.5rem;
    color: var(--sb3e-text-muted);
    line-height: 1.6;
}

/* Feature List */
.sb3e-feature-list {
    list-style: none;
}

.sb3e-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 225, 53, 0.1);
}

.sb3e-feature-list li:last-child {
    border-bottom: none;
}

.sb3e-feature-icon {
    color: var(--sb3e-primary);
    font-size: 2rem;
    flex-shrink: 0;
}

/* RTP Stats */
.sb3e-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.sb3e-stat-item {
    background: rgba(255, 225, 53, 0.05);
    border-radius: var(--sb3e-radius-sm);
    padding: 1.5rem;
    text-align: center;
}

.sb3e-stat-value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--sb3e-primary);
}

.sb3e-stat-label {
    font-size: 1.2rem;
    color: var(--sb3e-text-muted);
    margin-top: 0.5rem;
}

/* FAQ Section */
.sb3e-faq-item {
    background: rgba(255, 225, 53, 0.05);
    border-radius: var(--sb3e-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.sb3e-faq-question {
    padding: 1.5rem;
    font-weight: 600;
    color: var(--sb3e-text-light);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sb3e-faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--sb3e-text-muted);
    font-size: 1.4rem;
}

/* Footer */
.sb3e-footer {
    background: var(--sb3e-bg-darker);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 225, 53, 0.1);
}

.sb3e-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.sb3e-footer-links a {
    color: var(--sb3e-text-muted);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.sb3e-footer-links a:hover {
    color: var(--sb3e-primary);
}

.sb3e-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 225, 53, 0.1);
    border-bottom: 1px solid rgba(255, 225, 53, 0.1);
}

.sb3e-partners img {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.sb3e-partners img:hover {
    opacity: 1;
}

.sb3e-copyright {
    text-align: center;
    color: var(--sb3e-text-muted);
    font-size: 1.3rem;
}

/* Mobile Bottom Navigation */
.sb3e-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--sb3e-bg-darker) 0%, #0a0a0a 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 225, 53, 0.2);
}

.sb3e-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sb3e-nav-btn:hover,
.sb3e-nav-btn:active {
    transform: scale(1.1);
}

.sb3e-nav-btn .material-icons,
.sb3e-nav-btn ion-icon {
    font-size: 24px;
    color: var(--sb3e-text-muted);
    transition: color 0.3s ease;
}

.sb3e-nav-btn:hover .material-icons,
.sb3e-nav-btn:hover ion-icon,
.sb3e-nav-btn.active .material-icons,
.sb3e-nav-btn.active ion-icon {
    color: var(--sb3e-primary);
}

.sb3e-nav-btn span {
    font-size: 10px;
    color: var(--sb3e-text-muted);
    margin-top: 4px;
    transition: color 0.3s ease;
}

.sb3e-nav-btn:hover span,
.sb3e-nav-btn.active span {
    color: var(--sb3e-primary);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .sb3e-bottom-nav {
        display: none;
    }
}

/* Promotional Links */
.sb3e-promo-link {
    color: var(--sb3e-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sb3e-promo-link:hover {
    color: var(--sb3e-accent);
    text-decoration: underline;
}

.sb3e-promo-banner {
    background: var(--sb3e-gradient);
    padding: 2rem;
    border-radius: var(--sb3e-radius);
    text-align: center;
    margin: 2rem 0;
}

.sb3e-promo-banner h3 {
    color: var(--sb3e-bg-dark);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.sb3e-promo-banner p {
    color: var(--sb3e-bg-dark);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

/* Utility Classes */
.sb3e-text-center {
    text-align: center;
}

.sb3e-mb-1 {
    margin-bottom: 1rem;
}

.sb3e-mb-2 {
    margin-bottom: 2rem;
}

.sb3e-mb-3 {
    margin-bottom: 3rem;
}

.sb3e-hidden {
    display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 430px) {
    .sb3e-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .sb3e-game-name {
        font-size: 1rem;
    }

    .sb3e-section-title {
        font-size: 2rem;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .sb3e-container {
        max-width: 768px;
    }

    .sb3e-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .sb3e-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
