/**
 * Sakla Game - Main Stylesheet
 * Version: 1.0.0
 * All classes use 'sab8-' prefix for namespace isolation
 * Color Palette: #FFB3FF | #008000 | #BAFFC9 | #FF8A80 | #1B263B
 */

/* CSS Variables */
:root {
    --sab8-primary: #008000;
    --sab8-secondary: #FFB3FF;
    --sab8-accent: #FF8A80;
    --sab8-bg: #1B263B;
    --sab8-bg-light: #2a3f5f;
    --sab8-text: #BAFFC9;
    --sab8-text-light: #ffffff;
    --sab8-border: rgba(255, 179, 255, 0.3);
    --sab8-gradient: linear-gradient(135deg, #1B263B 0%, #2a3f5f 100%);
    --sab8-card-bg: rgba(27, 38, 59, 0.95);
}

/* Base Styles */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--sab8-gradient);
    background-attachment: fixed;
    color: var(--sab8-text);
    line-height: 1.5;
    min-height: 100vh;
}

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

/* Header */
.sab8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1B263B 0%, rgba(27, 38, 59, 0.98) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sab8-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

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

.sab8-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.sab8-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sab8-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sab8-header-actions {
    display: flex;
    gap: 0.6rem;
}

.sab8-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sab8-btn-register {
    background: linear-gradient(135deg, #008000 0%, #00a000 100%);
    color: var(--sab8-text-light);
    box-shadow: 0 2px 8px rgba(0, 128, 0, 0.4);
}

.sab8-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 0, 0.5);
}

.sab8-btn-login {
    background: transparent;
    border: 2px solid var(--sab8-secondary);
    color: var(--sab8-secondary);
}

.sab8-btn-login:hover {
    background: var(--sab8-secondary);
    color: var(--sab8-bg);
}

.sab8-menu-btn {
    background: transparent;
    border: none;
    color: var(--sab8-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.sab8-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--sab8-bg);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.4);
}

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

.sab8-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

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

.sab8-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sab8-secondary);
}

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

.sab8-menu-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sab8-menu-nav li {
    margin-bottom: 0.8rem;
}

.sab8-menu-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    color: var(--sab8-text);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sab8-menu-nav a:hover {
    background: rgba(255, 179, 255, 0.1);
    color: var(--sab8-secondary);
}

.sab8-menu-nav i {
    width: 20px;
    text-align: center;
}

/* Main Content */
main {
    padding-top: 60px;
}

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

/* Hero Slider */
.sab8-hero {
    position: relative;
    height: 200px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.sab8-slider {
    position: relative;
    height: 100%;
}

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

.sab8-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

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

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

.sab8-dot-active {
    background: var(--sab8-secondary);
    transform: scale(1.2);
}

/* Sections */
.sab8-section {
    padding: 1.5rem 1rem;
    margin-bottom: 1rem;
}

.sab8-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--sab8-secondary);
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Game Grid */
.sab8-game-category {
    margin-bottom: 2rem;
}

.sab8-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--sab8-secondary);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--sab8-primary);
}

.sab8-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.sab8-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.sab8-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

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

.sab8-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sab8-secondary);
    margin-bottom: 1rem;
}

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

/* Feature List */
.sab8-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sab8-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.3rem;
}

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

.sab8-feature-list i {
    color: var(--sab8-primary);
    margin-top: 2px;
}

/* Promo Link */
.sab8-promo-link {
    color: var(--sab8-secondary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sab8-promo-link:hover {
    color: var(--sab8-accent);
}

/* Buttons */
.sab8-btn-promo {
    display: inline-block;
    background: linear-gradient(135deg, var(--sab8-primary) 0%, #00a000 100%);
    color: var(--sab8-text-light);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 128, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sab8-btn-promo:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 128, 0, 0.5);
}

/* Footer */
.sab8-footer {
    background: linear-gradient(180deg, rgba(27, 38, 59, 0.95) 0%, #1B263B 100%);
    padding: 2rem 1rem 1rem;
    border-top: 1px solid var(--sab8-border);
}

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

.sab8-footer-desc {
    font-size: 1.2rem;
    color: var(--sab8-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

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

.sab8-footer-links a:hover {
    background: var(--sab8-secondary);
    color: var(--sab8-bg);
}

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

.sab8-footer-promo .sab8-btn {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}

.sab8-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(186, 255, 201, 0.7);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation */
.sab8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(27, 38, 59, 0.98) 0%, #1B263B 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    border-top: 1px solid var(--sab8-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
    .sab8-bottom-nav {
        display: none;
    }
}

.sab8-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;
    text-decoration: none;
}

.sab8-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.sab8-nav-item span {
    font-size: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sab8-nav-item:hover i,
.sab8-nav-item:hover span {
    color: var(--sab8-secondary);
}

.sab8-nav-item.active i,
.sab8-nav-item.active span {
    color: var(--sab8-primary);
}

.sab8-nav-item i,
.sab8-nav-item span {
    color: var(--sab8-text);
}

/* Partners */
.sab8-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
}

.sab8-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.5);
    transition: filter 0.3s ease;
}

.sab8-partner-logo:hover {
    filter: none;
}

/* Testimonials */
.sab8-testimonial {
    background: var(--sab8-card-bg);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.8rem;
    border-left: 3px solid var(--sab8-primary);
}

.sab8-testimonial-text {
    font-size: 1.2rem;
    color: var(--sab8-text);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.sab8-testimonial-author {
    font-size: 1.1rem;
    color: var(--sab8-secondary);
    font-weight: 600;
}

/* Payment Methods */
.sab8-payment-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.sab8-payment-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--sab8-text);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Winners */
.sab8-winners {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sab8-winner-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 1.2rem;
}

.sab8-winner-name {
    color: var(--sab8-text);
}

.sab8-winner-amount {
    color: var(--sab8-accent);
    font-weight: 700;
}

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

.sab8-mb-1 {
    margin-bottom: 0.5rem;
}

.sab8-mb-2 {
    margin-bottom: 1rem;
}

.sab8-mb-3 {
    margin-bottom: 1.5rem;
}

.sab8-hidden {
    display: none;
}

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

.sab8-animate {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive Adjustments */
@media (max-width: 360px) {
    .sab8-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sab8-header-actions .sab8-btn {
        padding: 0.5rem 0.8rem;
        font-size: 1.1rem;
    }
}
