/**
 * HannaOnline - Theme Stylesheet
 * All classes use prefix 'v828-' for namespace isolation
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --v828-primary: #8B7355;
    --v828-secondary: #1B263B;
    --v828-accent: #6F4E37;
    --v828-light: #F5DEB3;
    --v828-bg-dark: #1B263B;
    --v828-bg-medium: #2a3a54;
    --v828-text-light: #F5DEB3;
    --v828-text-white: #ffffff;
    --v828-gold: #D4AF37;
    --v828-gradient: linear-gradient(135deg, #8B7355 0%, #6F4E37 100%);
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--v828-bg-dark);
    color: var(--v828-text-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

/* Header Styles */
.v828-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--v828-bg-dark) 0%, rgba(27, 38, 59, 0.95) 100%);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.v828-header-scrolled {
    background: rgba(27, 38, 59, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

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

.v828-logo img {
    width: 32px;
    height: 32px;
}

.v828-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--v828-text-white);
    letter-spacing: 0.5px;
}

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

.v828-btn {
    padding: 0.6rem 1.2rem;
    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.5rem;
}

.v828-btn-primary {
    background: var(--v828-gradient);
    color: var(--v828-text-white);
    border: none;
}

.v828-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.4);
}

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

.v828-btn-outline:hover {
    background: var(--v828-primary);
    color: var(--v828-text-white);
}

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

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

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

.v828-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.v828-mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.v828-mobile-menu a {
    color: var(--v828-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.v828-mobile-menu a:hover {
    background: var(--v828-primary);
    color: var(--v828-text-white);
}

.v828-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--v828-text-light);
    font-size: 2rem;
    cursor: pointer;
}

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

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

/* Carousel/Slider */
.v828-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.v828-slides {
    display: flex;
    width: 100%;
}

.v828-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

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

.v828-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Section Styles */
.v828-section {
    padding: 2rem 1.5rem;
}

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

.v828-section-title i {
    color: var(--v828-gold);
}

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

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

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

.v828-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--v828-primary);
    transition: border-color 0.3s ease;
}

.v828-game-item:hover img {
    border-color: var(--v828-gold);
}

.v828-game-name {
    font-size: 1.1rem;
    color: var(--v828-text-light);
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Title */
.v828-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v828-gold);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--v828-gold);
}

/* Card Styles */
.v828-card {
    background: var(--v828-bg-medium);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.v828-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v828-text-white);
    margin-bottom: 1rem;
}

.v828-card-text {
    font-size: 1.2rem;
    color: var(--v828-text-light);
    line-height: 1.6;
}

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

.v828-feature-item {
    background: var(--v828-bg-medium);
    padding: 1.2rem;
    border-radius: 10px;
    text-align: center;
}

.v828-feature-item i {
    font-size: 2.4rem;
    color: var(--v828-gold);
    margin-bottom: 0.8rem;
}

.v828-feature-item h4 {
    font-size: 1.2rem;
    color: var(--v828-text-white);
    margin: 0 0 0.5rem;
}

.v828-feature-item p {
    font-size: 1rem;
    color: var(--v828-text-light);
    margin: 0;
}

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

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

.v828-promo-btn {
    display: inline-block;
    background: var(--v828-gradient);
    color: var(--v828-text-white);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v828-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
}

/* Footer Styles */
.v828-footer {
    background: var(--v828-bg-medium);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.v828-footer-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.v828-footer-brand p {
    font-size: 1.2rem;
    color: var(--v828-text-light);
    line-height: 1.6;
    margin: 0.5rem 0;
}

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

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

.v828-footer-links a:hover {
    background: var(--v828-primary);
    color: var(--v828-text-white);
}

.v828-footer-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(245, 222, 179, 0.7);
    border-top: 1px solid rgba(139, 115, 85, 0.3);
    padding-top: 1.5rem;
}

/* Bottom Navigation */
.v828-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--v828-bg-medium) 0%, var(--v828-bg-dark) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--v828-primary);
}

.v828-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: 8px;
}

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

.v828-nav-item span {
    font-size: 10px;
    color: var(--v828-text-light);
    transition: all 0.3s ease;
}

.v828-nav-item:hover,
.v828-nav-item.active {
    background: rgba(139, 115, 85, 0.2);
}

.v828-nav-item:hover i,
.v828-nav-item:hover span,
.v828-nav-item.active i,
.v828-nav-item.active span {
    color: var(--v828-gold);
}

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

/* FAQ Styles */
.v828-faq-item {
    background: var(--v828-bg-medium);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.v828-faq-question {
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--v828-text-white);
    background: rgba(139, 115, 85, 0.1);
    cursor: pointer;
}

.v828-faq-answer {
    padding: 1.2rem;
    font-size: 1.2rem;
    color: var(--v828-text-light);
    line-height: 1.6;
}

/* Testimonial */
.v828-testimonial {
    background: var(--v828-bg-medium);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--v828-gold);
}

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

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

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

.v828-payment-item {
    background: var(--v828-bg-medium);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1.2rem;
    color: var(--v828-text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Winners Showcase */
.v828-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--v828-bg-medium);
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.v828-winner-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v828-winner-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--v828-gold);
}

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

    .v828-features-grid {
        grid-template-columns: 1fr;
    }
}
