/**
 * phpwin.click - Core Stylesheet
 * Mobile-first gaming platform design
 * CSS Class Prefix: sab2-
 * @version 1.0.0
 */

/* ==================== CSS Variables ==================== */
:root {
    --sab2-primary: #00B8D4;
    --sab2-secondary: #708090;
    --sab2-accent: #95A5A6;
    --sab2-bg-dark: #141414;
    --sab2-bg-medium: #1a1a1a;
    --sab2-bg-light: #2a2a2a;
    --sab2-text-light: #ffffff;
    --sab2-text-muted: #BDC3C7;
    --sab2-text-gray: #808080;
    --sab2-border: #333333;
    --sab2-success: #27ae60;
    --sab2-warning: #f39c12;
    --sab2-gradient: linear-gradient(135deg, #00B8D4 0%, #0097A7 100%);
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--sab2-bg-dark);
    color: var(--sab2-text-light);
    line-height: 1.5;
    font-size: 1.4rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================== Header ==================== */
.sab2-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--sab2-border);
    transition: box-shadow 0.3s ease;
}

.sab2-header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.sab2-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

.sab2-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--sab2-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sab2-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sab2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
}

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

.sab2-btn-login:hover {
    background: rgba(0, 184, 212, 0.1);
}

.sab2-btn-register {
    background: var(--sab2-gradient);
    color: var(--sab2-text-light);
}

.sab2-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 184, 212, 0.4);
}

/* Hamburger Menu */
.sab2-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
}

.sab2-hamburger span {
    display: block;
    height: 2px;
    background: var(--sab2-text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.sab2-hamburger-active span:nth-child(2) {
    opacity: 0;
}

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

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

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

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

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

.sab2-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem;
    border-bottom: 1px solid var(--sab2-border);
}

.sab2-menu-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--sab2-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.sab2-menu-nav {
    padding: 1rem 0;
}

.sab2-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.6rem;
    color: var(--sab2-text-light);
    font-size: 1.4rem;
    transition: background 0.3s ease;
}

.sab2-menu-link:hover {
    background: var(--sab2-bg-light);
}

.sab2-menu-link i {
    width: 20px;
    text-align: center;
    color: var(--sab2-primary);
}

/* ==================== Main Content ==================== */
.sab2-main {
    padding-top: 56px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.sab2-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==================== Carousel ==================== */
.sab2-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin: 1rem;
}

.sab2-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.sab2-slide {
    min-width: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease;
}

.sab2-slide-active {
    opacity: 1;
    position: relative;
}

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

.sab2-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

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

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

/* ==================== Section Styles ==================== */
.sab2-section {
    padding: 1.5rem 1rem;
}

.sab2-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--sab2-text-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.sab2-section-title i {
    color: var(--sab2-primary);
}

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

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

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

.sab2-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0.4rem;
    border: 2px solid var(--sab2-border);
    transition: border-color 0.3s ease;
}

.sab2-game-item:hover .sab2-game-icon {
    border-color: var(--sab2-primary);
}

.sab2-game-name {
    font-size: 1rem;
    color: var(--sab2-text-muted);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== Cards ==================== */
.sab2-card {
    background: var(--sab2-bg-medium);
    border-radius: 10px;
    padding: 1.2rem;
    border: 1px solid var(--sab2-border);
    margin-bottom: 1rem;
}

.sab2-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--sab2-text-light);
}

.sab2-card-text {
    font-size: 1.3rem;
    color: var(--sab2-text-muted);
    line-height: 1.6;
}

/* ==================== Features Grid ==================== */
.sab2-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sab2-feature-item {
    background: var(--sab2-bg-light);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--sab2-border);
}

.sab2-feature-icon {
    font-size: 2.4rem;
    color: var(--sab2-primary);
    margin-bottom: 0.6rem;
}

.sab2-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--sab2-text-light);
    margin-bottom: 0.4rem;
}

.sab2-feature-desc {
    font-size: 1.1rem;
    color: var(--sab2-text-gray);
}

/* ==================== Promo Buttons ==================== */
.sab2-promo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: var(--sab2-gradient);
    color: var(--sab2-text-light);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    margin: 0.5rem 0;
}

.sab2-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 212, 0.4);
}

.sab2-promo-btn-secondary {
    background: transparent;
    border: 2px solid var(--sab2-primary);
    color: var(--sab2-primary);
}

.sab2-promo-btn-secondary:hover {
    background: rgba(0, 184, 212, 0.1);
}

/* ==================== Footer ==================== */
.sab2-footer {
    background: var(--sab2-bg-medium);
    padding: 2rem 1rem;
    border-top: 1px solid var(--sab2-border);
}

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

.sab2-footer-desc {
    font-size: 1.2rem;
    color: var(--sab2-text-gray);
    line-height: 1.6;
    max-width: 350px;
    margin: 0 auto 1rem;
}

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

.sab2-footer-link {
    font-size: 1.2rem;
    color: var(--sab2-text-muted);
    padding: 0.4rem 0.8rem;
    background: var(--sab2-bg-light);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sab2-footer-link:hover {
    color: var(--sab2-primary);
    background: rgba(0, 184, 212, 0.1);
}

.sab2-footer-promo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.sab2-footer-promo-btn {
    padding: 0.6rem 1rem;
    font-size: 1.1rem;
    background: var(--sab2-gradient);
    color: var(--sab2-text-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sab2-footer-promo-btn:hover {
    transform: scale(1.05);
}

.sab2-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--sab2-text-gray);
    padding-top: 1rem;
    border-top: 1px solid var(--sab2-border);
}

/* ==================== Bottom Navigation ==================== */
.sab2-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--sab2-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.sab2-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--sab2-text-gray);
}

.sab2-nav-item:hover,
.sab2-nav-item-active {
    color: var(--sab2-primary);
}

.sab2-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

.sab2-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

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

    .sab2-hamburger {
        display: none;
    }

    .sab2-main {
        padding-bottom: 2rem;
    }

    .sab2-container {
        max-width: 800px;
    }

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

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

/* ==================== Utility Classes ==================== */
.sab2-text-center { text-align: center; }
.sab2-text-primary { color: var(--sab2-primary); }
.sab2-text-muted { color: var(--sab2-text-muted); }
.sab2-mt-1 { margin-top: 0.5rem; }
.sab2-mt-2 { margin-top: 1rem; }
.sab2-mb-1 { margin-bottom: 0.5rem; }
.sab2-mb-2 { margin-bottom: 1rem; }
.sab2-py-2 { padding-top: 1rem; padding-bottom: 1rem; }

/* ==================== Animations ==================== */
@keyframes sab2-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.sab2-animate-pulse {
    animation: sab2-pulse 2s infinite;
}
