/**
 * SuperPH Login - Theme Stylesheet
 * Version: 1.0.0
 * Prefix: sc2b-
 * Color Palette: #0F0F23 (bg), #CD853F (accent), #CED4DA (text)
 */

/* CSS Variables */
:root {
    --sc2b-bg: #0F0F23;
    --sc2b-bg-light: #1a1a3e;
    --sc2b-bg-card: #16163a;
    --sc2b-accent: #CD853F;
    --sc2b-accent-light: #daa06d;
    --sc2b-accent-dark: #b87333;
    --sc2b-text: #CED4DA;
    --sc2b-text-light: #e8ecf0;
    --sc2b-text-muted: #8a9199;
    --sc2b-success: #28a745;
    --sc2b-warning: #ffc107;
    --sc2b-danger: #dc3545;
    --sc2b-border: #2a2a5a;
    --sc2b-shadow: rgba(0, 0, 0, 0.3);
    --sc2b-gradient: linear-gradient(135deg, var(--sc2b-accent), var(--sc2b-accent-dark));
}

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

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--sc2b-bg);
    color: var(--sc2b-text);
    line-height: 1.5;
    font-size: 1.6rem;
    min-height: 100vh;
}

/* Container */
.sc2b-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.sc2b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--sc2b-bg);
    border-bottom: 1px solid var(--sc2b-border);
    z-index: 1000;
    padding: 1rem 0;
}

.sc2b-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sc2b-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--sc2b-text-light);
}

.sc2b-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.sc2b-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sc2b-accent);
}

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

.sc2b-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.sc2b-btn-primary {
    background: var(--sc2b-gradient);
    color: #fff;
}

.sc2b-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--sc2b-shadow);
}

.sc2b-btn-secondary {
    background: transparent;
    color: var(--sc2b-accent);
    border: 1px solid var(--sc2b-accent);
}

.sc2b-btn-secondary:hover {
    background: var(--sc2b-accent);
    color: #fff;
}

.sc2b-menu-btn {
    background: transparent;
    border: none;
    color: var(--sc2b-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

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

.sc2b-menu-active {
    right: 0;
}

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

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

.sc2b-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--sc2b-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.sc2b-menu-links {
    list-style: none;
    margin-top: 4rem;
}

.sc2b-menu-links li {
    margin-bottom: 1.5rem;
}

.sc2b-menu-links a {
    color: var(--sc2b-text);
    text-decoration: none;
    font-size: 1.6rem;
    display: block;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sc2b-menu-links a:hover {
    background: var(--sc2b-bg-light);
    color: var(--sc2b-accent);
}

/* Main Content */
main {
    padding-top: 7rem;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 8rem;
    }
}

/* Carousel */
.sc2b-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1.5rem auto;
    max-width: 400px;
}

.sc2b-slide {
    display: none;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    cursor: pointer;
}

.sc2b-slide-active {
    display: block;
}

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

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

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

.sc2b-dot-active {
    background: var(--sc2b-accent);
    transform: scale(1.2);
}

/* Sections */
.sc2b-section {
    padding: 2rem 0;
}

.sc2b-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sc2b-accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--sc2b-accent);
}

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

.sc2b-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.sc2b-game-item:hover {
    transform: scale(1.05);
}

.sc2b-game-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--sc2b-border);
}

.sc2b-game-name {
    font-size: 1.1rem;
    color: var(--sc2b-text);
    text-align: center;
    line-height: 1.3;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Cards */
.sc2b-card {
    background: var(--sc2b-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--sc2b-border);
    margin-bottom: 1.5rem;
}

.sc2b-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sc2b-accent);
    margin-bottom: 1rem;
}

.sc2b-card-text {
    font-size: 1.4rem;
    color: var(--sc2b-text);
    line-height: 1.6;
}

/* Footer */
.sc2b-footer {
    background: var(--sc2b-bg-card);
    border-top: 1px solid var(--sc2b-border);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

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

.sc2b-footer-desc {
    font-size: 1.3rem;
    color: var(--sc2b-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.sc2b-footer-links a {
    color: var(--sc2b-accent);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.5rem 1rem;
    background: var(--sc2b-bg-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sc2b-footer-links a:hover {
    background: var(--sc2b-accent);
    color: #fff;
}

.sc2b-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--sc2b-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--sc2b-border);
}

/* Bottom Navigation */
.sc2b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--sc2b-bg-card), var(--sc2b-bg));
    border-top: 2px solid var(--sc2b-accent);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.sc2b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 0.5rem;
}

.sc2b-nav-item:hover {
    transform: scale(1.1);
}

.sc2b-nav-item i,
.sc2b-nav-item .material-icons {
    font-size: 24px;
    color: var(--sc2b-text-muted);
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.sc2b-nav-item span {
    font-size: 1rem;
    color: var(--sc2b-text-muted);
    transition: color 0.3s ease;
}

.sc2b-nav-item:hover i,
.sc2b-nav-item:hover .material-icons,
.sc2b-nav-item:hover span {
    color: var(--sc2b-accent);
}

.sc2b-nav-item.active i,
.sc2b-nav-item.active .material-icons,
.sc2b-nav-item.active span {
    color: var(--sc2b-accent);
}

/* Desktop: Hide bottom nav */
@media (min-width: 769px) {
    .sc2b-bottom-nav {
        display: none;
    }
}

/* Utilities */
.sc2b-text-center {
    text-align: center;
}

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

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

.sc2b-mt-1 {
    margin-top: 1rem;
}

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

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

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

/* List Styles */
.sc2b-list {
    list-style: none;
    padding-left: 0;
}

.sc2b-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--sc2b-border);
    font-size: 1.4rem;
}

.sc2b-list li:last-child {
    border-bottom: none;
}

/* Responsive Typography */
@media (max-width: 380px) {
    html {
        font-size: 55%;
    }

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

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

.sc2b-fade-in {
    animation: fadeIn 0.5s ease forwards;
}
