/**
 * JLJL77 2025 Mobile-First Responsive Styles
 * Color Palette: #FFC0CB | #CC99FF | #8470FF | #FFB6C1 | #0A0A0A
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px base for rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #FFC0CB;
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --sd3b-primary: #FFC0CB;
    --sd3b-secondary: #CC99FF;
    --sd3b-accent: #8470FF;
    --sd3b-light: #FFB6C1;
    --sd3b-dark: #0A0A0A;
    --sd3b-bg: #0A0A0A;
    --sd3b-text: #FFC0CB;
    --sd3b-border: rgba(255, 192, 203, 0.2);
    --sd3b-shadow: rgba(132, 112, 255, 0.3);
    --sd3b-gradient: linear-gradient(135deg, #CC99FF 0%, #8470FF 100%);
}

/* Container and Layout */
.sd3b-container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.sd3b-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.sd3b-main {
    flex: 1;
    padding-top: 7rem;
    padding-bottom: 8rem;
}

/* Header Styles */
.sd3b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sd3b-border);
    transition: transform 0.3s ease;
}

.sd3b-header-hidden {
    transform: translateY(-100%);
}

.sd3b-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 6rem;
    padding: 0 1.5rem;
}

.sd3b-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--sd3b-primary);
    font-weight: 700;
    font-size: 1.8rem;
}

.sd3b-logo-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.6rem;
    background: var(--sd3b-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
}

.sd3b-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sd3b-auth-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd3b-login-btn {
    background: transparent;
    color: var(--sd3b-primary);
    border: 1px solid var(--sd3b-border);
}

.sd3b-signup-btn {
    background: var(--sd3b-gradient);
    color: white;
    box-shadow: 0 4px 12px var(--sd3b-shadow);
}

.sd3b-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    cursor: pointer;
    background: none;
    border: none;
    margin-left: 1rem;
}

.sd3b-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--sd3b-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.sd3b-toggle-active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.sd3b-toggle-active span:nth-child(2) {
    opacity: 0;
}

.sd3b-toggle-active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.sd3b-nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--sd3b-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sd3b-nav-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.sd3b-nav-menu ul {
    list-style: none;
    padding: 2rem 1.5rem;
}

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

.sd3b-nav-menu a {
    display: block;
    padding: 1.2rem 0;
    color: var(--sd3b-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 192, 203, 0.1);
    transition: color 0.3s ease;
}

.sd3b-nav-menu a:hover {
    color: var(--sd3b-secondary);
}

/* Carousel Styles */
.sd3b-carousel {
    position: relative;
    height: 20rem;
    border-radius: 1.2rem;
    overflow: hidden;
    margin-bottom: 2rem;
}

.sd3b-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.sd3b-slide-active {
    opacity: 1;
}

.sd3b-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sd3b-carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.sd3b-indicator {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.sd3b-indicator-active {
    background: var(--sd3b-primary);
}

/* Game Grid Styles */
.sd3b-games-section {
    margin: 3rem 0;
}

.sd3b-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--sd3b-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.sd3b-game-category {
    margin-bottom: 3rem;
}

.sd3b-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--sd3b-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sd3b-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: 1.2rem;
}

.sd3b-game-item {
    background: rgba(255, 192, 203, 0.05);
    border: 1px solid var(--sd3b-border);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.sd3b-game-item:hover,
.sd3b-game-item:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--sd3b-shadow);
    border-color: var(--sd3b-accent);
}

.sd3b-game-pressed {
    transform: scale(0.95);
}

.sd3b-game-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
    object-fit: cover;
}

.sd3b-game-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--sd3b-text);
    line-height: 1.2;
}

/* Content Sections */
.sd3b-content-section {
    margin: 4rem 0;
    padding: 3rem 2rem;
    background: rgba(255, 192, 203, 0.03);
    border: 1px solid var(--sd3b-border);
    border-radius: 1.5rem;
}

.sd3b-content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sd3b-primary);
    margin-bottom: 1.5rem;
}

.sd3b-content-text {
    color: var(--sd3b-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Buttons */
.sd3b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.4rem;
    border: none;
    border-radius: 2.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 4.4rem;
    gap: 0.8rem;
}

.sd3b-btn-primary {
    background: var(--sd3b-gradient);
    color: white;
    box-shadow: 0 4px 15px var(--sd3b-shadow);
}

.sd3b-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--sd3b-shadow);
}

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

.sd3b-btn-outline:hover {
    background: var(--sd3b-primary);
    color: var(--sd3b-dark);
}

/* Promo Links */
.sd3b-promo-link {
    color: var(--sd3b-accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--sd3b-accent);
    transition: all 0.3s ease;
}

.sd3b-promo-link:hover {
    color: var(--sd3b-secondary);
    border-color: var(--sd3b-secondary);
}

/* Bottom Navigation */
.sd3b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--sd3b-border);
    z-index: 999;
    height: 6.4rem;
}

.sd3b-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    max-width: 43rem;
    margin: 0 auto;
}

.sd3b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    color: rgba(255, 192, 203, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0.8rem;
    min-width: 5rem;
    min-height: 4.4rem;
}

.sd3b-nav-item i {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

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

.sd3b-nav-active {
    color: var(--sd3b-primary);
    background: rgba(255, 192, 203, 0.1);
}

.sd3b-nav-clicked {
    transform: scale(0.9);
}

/* Footer */
.sd3b-footer {
    background: rgba(10, 10, 10, 0.8);
    padding: 3rem 0 8rem;
    border-top: 1px solid var(--sd3b-border);
}

.sd3b-footer-content {
    text-align: center;
}

.sd3b-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.sd3b-footer-links a {
    color: var(--sd3b-light);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.sd3b-footer-links a:hover {
    color: var(--sd3b-primary);
}

.sd3b-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.sd3b-partner-logo {
    width: 4rem;
    height: 4rem;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.sd3b-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.sd3b-copyright {
    color: rgba(255, 192, 203, 0.5);
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .sd3b-container {
        max-width: 76.8rem;
    }
    
    .sd3b-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    }
    
    .sd3b-nav-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: none;
        border: none;
    }
    
    .sd3b-nav-menu ul {
        display: flex;
        padding: 0;
        gap: 2rem;
    }
    
    .sd3b-nav-menu li {
        margin: 0;
    }
    
    .sd3b-nav-menu a {
        padding: 0;
        border: none;
    }
    
    .sd3b-menu-toggle {
        display: none;
    }
    
    .sd3b-bottom-nav {
        display: none;
    }
    
    .sd3b-main {
        padding-bottom: 3rem;
    }
}

/* Animations */
@keyframes sd3b-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sd3b-fade-in {
    animation: sd3b-fadeIn 0.6s ease forwards;
}

/* Utility Classes */
.sd3b-text-center { text-align: center; }
.sd3b-text-primary { color: var(--sd3b-primary); }
.sd3b-text-secondary { color: var(--sd3b-secondary); }
.sd3b-mb-1 { margin-bottom: 1rem; }
.sd3b-mb-2 { margin-bottom: 2rem; }
.sd3b-mb-3 { margin-bottom: 3rem; }
.sd3b-mt-1 { margin-top: 1rem; }
.sd3b-mt-2 { margin-top: 2rem; }
.sd3b-mt-3 { margin-top: 3rem; }