/**
 * PH365 App - Theme Stylesheet
 * Prefix: sbdc-
 * Color Palette: #1E90FF | #34495E | #999999 | #ADD8E6
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
    --sbdc-primary: #1E90FF;
    --sbdc-secondary: #34495E;
    --sbdc-accent: #ADD8E6;
    --sbdc-text-light: #ffffff;
    --sbdc-text-muted: #999999;
    --sbdc-bg-dark: #1a1a2e;
    --sbdc-bg-card: #16213e;
    --sbdc-gradient: linear-gradient(135deg, #1E90FF 0%, #34495E 100%);
    --sbdc-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --sbdc-radius: 8px;
}

/* 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: var(--sbdc-bg-dark);
    color: var(--sbdc-text-light);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.sbdc-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header Styles */
.sbdc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(22, 33, 62, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(30, 144, 255, 0.2);
}

.sbdc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
}

.sbdc-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.sbdc-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.sbdc-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sbdc-primary);
    text-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

.sbdc-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.sbdc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: var(--sbdc-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sbdc-btn-primary {
    background: var(--sbdc-gradient);
    color: var(--sbdc-text-light);
    box-shadow: 0 2px 10px rgba(30, 144, 255, 0.4);
}

.sbdc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(30, 144, 255, 0.6);
}

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

.sbdc-btn-outline:hover {
    background: var(--sbdc-primary);
    color: var(--sbdc-text-light);
}

.sbdc-menu-toggle {
    background: none;
    border: none;
    color: var(--sbdc-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.sbdc-menu-active {
    right: 0 !important;
}

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

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

.sbdc-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(30, 144, 255, 0.2);
}

.sbdc-menu-close {
    background: none;
    border: none;
    color: var(--sbdc-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.sbdc-menu-nav {
    list-style: none;
}

.sbdc-menu-nav li {
    margin-bottom: 1rem;
}

.sbdc-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--sbdc-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: var(--sbdc-radius);
    transition: all 0.3s ease;
}

.sbdc-menu-nav a:hover {
    background: rgba(30, 144, 255, 0.2);
    color: var(--sbdc-primary);
}

/* Main Content */
.sbdc-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Slider/Carousel */
.sbdc-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--sbdc-radius);
    margin-bottom: 2rem;
}

.sbdc-slides {
    display: relative;
}

.sbdc-slide {
    display: none;
    width: 100%;
}

.sbdc-slide:first-child {
    display: block;
}

.sbdc-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--sbdc-radius);
    cursor: pointer;
}

.sbdc-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

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

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

/* Section Styles */
.sbdc-section {
    padding: 2rem 0;
}

.sbdc-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sbdc-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--sbdc-primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sbdc-section-title i {
    font-size: 2rem;
}

/* Game Grid */
.sbdc-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.sbdc-game-card {
    background: var(--sbdc-bg-card);
    border-radius: var(--sbdc-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.sbdc-game-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sbdc-shadow);
}

.sbdc-game-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}

.sbdc-game-name {
    font-size: 1rem;
    color: var(--sbdc-text-light);
    padding: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.sbdc-category {
    margin-bottom: 2.5rem;
}

.sbdc-category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.sbdc-category-icon {
    width: 32px;
    height: 32px;
    background: var(--sbdc-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sbdc-text-light);
}

/* Info Cards */
.sbdc-info-card {
    background: var(--sbdc-bg-card);
    border-radius: var(--sbdc-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--sbdc-primary);
}

.sbdc-info-card h3 {
    font-size: 1.4rem;
    color: var(--sbdc-primary);
    margin-bottom: 1rem;
}

.sbdc-info-card p {
    font-size: 1.2rem;
    color: var(--sbdc-text-muted);
    line-height: 1.6;
}

/* Feature List */
.sbdc-feature-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.sbdc-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--sbdc-bg-card);
    border-radius: var(--sbdc-radius);
}

.sbdc-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--sbdc-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sbdc-feature-icon i {
    color: var(--sbdc-text-light);
    font-size: 1.6rem;
}

.sbdc-feature-content h4 {
    font-size: 1.3rem;
    color: var(--sbdc-text-light);
    margin-bottom: 0.4rem;
}

.sbdc-feature-content p {
    font-size: 1.1rem;
    color: var(--sbdc-text-muted);
}

/* Promo Link Styles */
.sbdc-promo-link {
    color: var(--sbdc-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Footer */
.sbdc-footer {
    background: var(--sbdc-bg-card);
    padding: 2rem 0;
    border-top: 1px solid rgba(30, 144, 255, 0.2);
}

.sbdc-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.sbdc-footer-brand p {
    font-size: 1.1rem;
    color: var(--sbdc-text-muted);
    margin-bottom: 0.5rem;
}

.sbdc-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.sbdc-footer-links a {
    font-size: 1.1rem;
    color: var(--sbdc-primary);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    background: rgba(30, 144, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sbdc-footer-links a:hover {
    background: var(--sbdc-primary);
    color: var(--sbdc-text-light);
}

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

/* Mobile Bottom Navigation */
.sbdc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(22, 33, 62, 0.98) 0%, rgba(26, 26, 46, 0.99) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(30, 144, 255, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.sbdc-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 60px;
    min-height: 44px;
    padding: 0.4rem;
    color: var(--sbdc-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
}

.sbdc-nav-item:hover,
.sbdc-nav-item.active {
    color: var(--sbdc-primary);
    background: rgba(30, 144, 255, 0.1);
}

.sbdc-nav-item i {
    font-size: 2.2rem;
}

.sbdc-nav-item span {
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (min-width: 769px) {
    .sbdc-bottom-nav {
        display: none;
    }

    .sbdc-container {
        max-width: 768px;
    }

    .sbdc-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

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

    html {
        font-size: 58%;
    }
}

/* Utility Classes */
.sbdc-text-center {
    text-align: center;
}

.sbdc-text-primary {
    color: var(--sbdc-primary);
}

.sbdc-mb-1 {
    margin-bottom: 1rem;
}

.sbdc-mb-2 {
    margin-bottom: 2rem;
}

.sbdc-mt-2 {
    margin-top: 2rem;
}

/* Animation */
@keyframes sbdc-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sbdc-animate {
    animation: sbdc-fade-in 0.5s ease forwards;
}
