/**
 * arenaplus app - Core Stylesheet
 * Version: 1.0.0
 * All classes use prefix: g586-
 */

/* CSS Variables */
:root {
    --g586-primary: #CD853F;
    --g586-secondary: #FFB6C1;
    --g586-dark: #333333;
    --g586-accent: #CD5C5C;
    --g586-danger: #B22222;
    --g586-bg: #1a1a2e;
    --g586-bg-light: #16213e;
    --g586-text: #ffffff;
    --g586-text-muted: #a0a0a0;
    --g586-gradient: linear-gradient(135deg, #CD853F 0%, #CD5C5C 100%);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--g586-bg);
    color: var(--g586-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
}

/* Container */
.g586-container {
    width: 100%;
    padding: 0 1.2rem;
    max-width: 430px;
    margin: 0 auto;
}

/* Header */
.g586-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g586-bg) 0%, rgba(26,26,46,0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(205,133,63,0.3);
    max-width: 430px;
    margin: 0 auto;
}

.g586-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.2rem;
    height: 56px;
}

.g586-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.g586-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.g586-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--g586-primary);
    letter-spacing: 0.5px;
}

.g586-header-btns {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.g586-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;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.g586-btn-primary {
    background: var(--g586-gradient);
    color: var(--g586-text);
}

.g586-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(205,133,63,0.4);
}

.g586-btn-outline {
    background: transparent;
    border: 2px solid var(--g586-primary);
    color: var(--g586-primary);
}

.g586-btn-outline:hover {
    background: var(--g586-primary);
    color: var(--g586-bg);
}

.g586-menu-toggle {
    background: none;
    border: none;
    color: var(--g586-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.g586-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g586-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 7rem 2rem 2rem;
    overflow-y: auto;
}

.g586-menu-active {
    right: 0;
}

.g586-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.g586-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g586-nav-list {
    list-style: none;
}

.g586-nav-item {
    margin-bottom: 0.5rem;
}

.g586-nav-link {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--g586-text);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.g586-nav-link:hover {
    background: rgba(205,133,63,0.2);
    color: var(--g586-primary);
}

/* Main Content */
.g586-main {
    padding-top: 56px;
}

@media (max-width: 768px) {
    .g586-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.g586-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.g586-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.g586-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.g586-slide-active {
    opacity: 1;
}

.g586-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g586-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.g586-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.g586-dot-active {
    background: var(--g586-primary);
}

/* Sections */
.g586-section {
    padding: 2rem 1.2rem;
}

.g586-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--g586-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.g586-section-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g586-secondary);
    margin-bottom: 1rem;
}

/* Game Grid */
.g586-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.g586-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.g586-game-item:hover {
    transform: scale(1.05);
}

.g586-game-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(205,133,63,0.3);
}

.g586-game-name {
    font-size: 1rem;
    color: var(--g586-text);
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Label */
.g586-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(205,133,63,0.2);
    border-radius: 20px;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--g586-primary);
    font-weight: 600;
}

/* Cards */
.g586-card {
    background: var(--g586-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(205,133,63,0.2);
}

.g586-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g586-primary);
    margin-bottom: 1rem;
}

.g586-card-text {
    font-size: 1.3rem;
    color: var(--g586-text-muted);
    line-height: 1.6;
}

/* Features List */
.g586-features {
    display: grid;
    gap: 1rem;
}

.g586-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(205,133,63,0.1);
    border-radius: 8px;
}

.g586-feature-icon {
    font-size: 2.4rem;
    color: var(--g586-primary);
}

.g586-feature-content h4 {
    font-size: 1.4rem;
    color: var(--g586-text);
    margin-bottom: 0.3rem;
}

.g586-feature-content p {
    font-size: 1.2rem;
    color: var(--g586-text-muted);
}

/* Footer */
.g586-footer {
    background: var(--g586-bg-light);
    padding: 2rem 1.2rem 8rem;
    border-top: 1px solid rgba(205,133,63,0.2);
}

.g586-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.g586-footer-link {
    color: var(--g586-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.g586-footer-link:hover {
    color: var(--g586-primary);
}

.g586-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.g586-partner-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g586-partner-img:hover {
    opacity: 1;
}

.g586-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--g586-text-muted);
}

/* Bottom Navigation */
.g586-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(26,26,46,0.98) 0%, var(--g586-bg) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(205,133,63,0.3);
    max-width: 430px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .g586-bottom-nav {
        display: none;
    }
}

.g586-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--g586-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 4px;
}

.g586-nav-btn:hover,
.g586-nav-btn-active {
    color: var(--g586-primary);
    transform: scale(1.1);
}

.g586-nav-btn i,
.g586-nav-btn .material-icons {
    font-size: 24px;
}

.g586-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Promo Links */
.g586-promo-link {
    color: var(--g586-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.g586-promo-link:hover {
    color: var(--g586-secondary);
    text-decoration: underline;
}

.g586-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--g586-gradient);
    color: var(--g586-text);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: 25px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.g586-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(205,133,63,0.5);
}

/* Typography */
.g586-text-primary {
    color: var(--g586-primary);
}

.g586-text-secondary {
    color: var(--g586-secondary);
}

.g586-text-muted {
    color: var(--g586-text-muted);
}

.g586-text-center {
    text-align: center;
}

.g586-mb-1 { margin-bottom: 0.5rem; }
.g586-mb-2 { margin-bottom: 1rem; }
.g586-mb-3 { margin-bottom: 1.5rem; }
.g586-mb-4 { margin-bottom: 2rem; }

/* RTP Badge */
.g586-rtp-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(205,133,63,0.3);
    color: var(--g586-primary);
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .g586-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .g586-game-img {
        width: 60px;
        height: 60px;
    }
}
