/**
 * kahoot.sbs - Main Stylesheet
 * All classes use prefix: sbb4-
 * Color Palette: #4A4A4A | #CC99FF | #6495ED | #333333 | #000080
 */

/* CSS Variables */
:root {
    --sbb4-primary: #CC99FF;
    --sbb4-secondary: #6495ED;
    --sbb4-bg-dark: #333333;
    --sbb4-bg-darker: #000080;
    --sbb4-text-light: #4A4A4A;
    --sbb4-text-white: #ffffff;
    --sbb4-accent: #CC99FF;
    --sbb4-gradient: linear-gradient(135deg, #000080 0%, #333333 50%, #4A4A4A 100%);
    --sbb4-shadow: 0 4px 15px rgba(0, 0, 128, 0.3);
    --sbb4-radius: 8px;
    --sbb4-transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--sbb4-gradient);
    color: var(--sbb4-text-white);
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Container */
.sbb4-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.sbb4-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, #000080 0%, #333333 100%);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--sbb4-shadow);
}

.sbb4-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.sbb4-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.sbb4-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sbb4-primary);
    letter-spacing: 0.5px;
}

.sbb4-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.sbb4-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--sbb4-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--sbb4-transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.sbb4-btn-register {
    background: linear-gradient(135deg, var(--sbb4-primary), var(--sbb4-secondary));
    color: #000;
}

.sbb4-btn-login {
    background: transparent;
    border: 2px solid var(--sbb4-primary);
    color: var(--sbb4-primary);
}

.sbb4-btn:hover, .sbb4-btn:active {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(204, 153, 255, 0.5);
}

.sbb4-menu-toggle {
    background: none;
    border: none;
    color: var(--sbb4-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.sbb4-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #000080, #333333);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.sbb4-mobile-menu.pro2ed-active {
    right: 0;
}

.sbb4-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;
}

.sbb4-menu-overlay.pro2ed-active {
    opacity: 1;
    visibility: visible;
}

.sbb4-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(204, 153, 255, 0.3);
}

.sbb4-menu-close {
    background: none;
    border: none;
    color: var(--sbb4-primary);
    font-size: 2.4rem;
    cursor: pointer;
}

.sbb4-nav-list {
    list-style: none;
}

.sbb4-nav-item {
    display: block;
    padding: 1.2rem 0;
    color: var(--sbb4-text-white);
    text-decoration: none;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--sbb4-transition);
}

.sbb4-nav-item:hover {
    color: var(--sbb4-primary);
    padding-left: 0.5rem;
}

/* Main Content */
.sbb4-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Carousel */
.sbb4-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 0 0 var(--sbb4-radius) var(--sbb4-radius);
}

.pro2ed-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pro2ed-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sbb4-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pro2ed-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--sbb4-transition);
}

.pro2ed-dot.pro2ed-active {
    background: var(--sbb4-primary);
    width: 20px;
    border-radius: 4px;
}

/* Sections */
.sbb4-section {
    padding: 2rem 1.5rem;
}

.sbb4-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sbb4-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Game Grid */
.sbb4-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.sbb4-game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--sbb4-radius);
    padding: 0.8rem;
    text-align: center;
    transition: var(--sbb4-transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.sbb4-game-card:hover {
    transform: translateY(-3px);
    background: rgba(204, 153, 255, 0.2);
    box-shadow: 0 4px 15px rgba(204, 153, 255, 0.3);
}

.sbb4-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.sbb4-game-name {
    font-size: 1.1rem;
    color: var(--sbb4-text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.sbb4-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sbb4-secondary);
    margin: 1.5rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--sbb4-primary);
}

/* Info Cards */
.sbb4-info-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--sbb4-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(204, 153, 255, 0.2);
}

.sbb4-info-card h3 {
    color: var(--sbb4-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.sbb4-info-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    line-height: 1.6;
}

.sbb4-info-card a {
    color: var(--sbb4-secondary);
    text-decoration: none;
    font-weight: 600;
}

.sbb4-info-card a:hover {
    text-decoration: underline;
}

/* Promo Link */
.sbb4-promo-link {
    color: var(--sbb4-primary);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--sbb4-transition);
}

.sbb4-promo-link:hover {
    color: var(--sbb4-secondary);
    text-decoration: underline;
}

.sbb4-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--sbb4-primary), var(--sbb4-secondary));
    color: #000;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--sbb4-transition);
    text-align: center;
    margin: 1rem 0;
}

.sbb4-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(204, 153, 255, 0.5);
}

/* Features List */
.sbb4-features-list {
    list-style: none;
    padding: 0;
}

.sbb4-features-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sbb4-features-list li i {
    color: var(--sbb4-primary);
    font-size: 1.8rem;
}

/* Footer */
.sbb4-footer {
    background: linear-gradient(180deg, #333333, #000080);
    padding: 2rem 1.5rem;
    text-align: center;
}

.sbb4-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.sbb4-footer-link {
    color: var(--sbb4-text-white);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: var(--sbb4-transition);
}

.sbb4-footer-link:hover {
    color: var(--sbb4-primary);
}

.sbb4-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.sbb4-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--sbb4-transition);
}

.sbb4-partner-logo:hover {
    opacity: 1;
}

.sbb4-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Mobile Bottom Navigation */
.sbb4-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, #333333, #000080);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 128, 0.3);
    border-top: 1px solid rgba(204, 153, 255, 0.3);
}

.sbb4-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--sbb4-transition);
    cursor: pointer;
}

.sbb4-bottom-nav-item:hover,
.sbb4-bottom-nav-item.active {
    color: var(--sbb4-primary);
    transform: scale(1.1);
}

.sbb4-bottom-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.sbb4-bottom-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .sbb4-bottom-nav {
        display: none;
    }
}

/* Add padding for mobile bottom nav */
@media (max-width: 768px) {
    .sbb4-main {
        padding-bottom: 80px;
    }
}

/* FAQ Section */
.sbb4-faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--sbb4-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.sbb4-faq-question {
    padding: 1.2rem;
    font-weight: 600;
    color: var(--sbb4-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sbb4-faq-answer {
    padding: 0 1.2rem 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .sbb4-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sbb4-section-title {
        font-size: 1.8rem;
    }
}

/* Utility Classes */
.sbb4-text-center { text-align: center; }
.sbb4-mt-1 { margin-top: 1rem; }
.sbb4-mb-1 { margin-bottom: 1rem; }
.sbb4-py-2 { padding-top: 2rem; padding-bottom: 2rem; }
