/**
 * Arena Plus Login - Core Stylesheet
 * Version: 1.0.0
 * Prefix: g385-
 * Colors: #FDF5E6 | #BBBBBB | #FFEFD5 | #273746 | #CD853F | #87CEEB
 */

/* CSS Variables */
:root {
    --g385-bg-dark: #273746;
    --g385-bg-light: #FDF5E6;
    --g385-text-light: #FDF5E6;
    --g385-text-muted: #BBBBBB;
    --g385-accent-gold: #CD853F;
    --g385-accent-blue: #87CEEB;
    --g385-cream: #FFEFD5;
    --g385-font-base: 62.5%;
    --g385-shadow: 0 4px 15px rgba(39, 55, 70, 0.3);
    --g385-radius: 8px;
    --g385-radius-lg: 16px;
}

/* Base Styles */
html {
    font-size: var(--g385-font-base);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--g385-bg-dark);
    color: var(--g385-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
}

a {
    color: var(--g385-accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--g385-accent-blue);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.g385-container {
    width: 100%;
    padding: 0 1.2rem;
    margin: 0 auto;
}

/* Header Styles */
.g385-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--g385-bg-dark) 0%, #1a252f 100%);
    padding: 1rem 1.2rem;
    z-index: 1000;
    box-shadow: var(--g385-shadow);
    max-width: 430px;
    margin: 0 auto;
}

.g385-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g385-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g385-logo img {
    width: 28px;
    height: 28px;
}

.g385-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--g385-accent-gold);
}

.g385-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.g385-btn {
    padding: 0.8rem 1.6rem;
    border-radius: var(--g385-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.g385-btn-primary {
    background: linear-gradient(135deg, var(--g385-accent-gold) 0%, #b8732e 100%);
    color: var(--g385-text-light);
}

.g385-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(205, 133, 63, 0.4);
}

.g385-btn-secondary {
    background: transparent;
    border: 2px solid var(--g385-accent-blue);
    color: var(--g385-accent-blue);
}

.g385-btn-secondary:hover {
    background: var(--g385-accent-blue);
    color: var(--g385-bg-dark);
}

.g385-menu-toggle {
    background: none;
    border: none;
    color: var(--g385-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.g385-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--g385-bg-dark) 0%, #1a252f 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
}

.g385-menu-active {
    right: 0;
}

.g385-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;
}

.g385-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g385-nav-list {
    list-style: none;
}

.g385-nav-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(253, 245, 230, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--g385-text-light);
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.g385-nav-item:hover {
    color: var(--g385-accent-gold);
}

.g385-nav-item i {
    width: 24px;
    text-align: center;
}

/* Main Content */
.g385-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .g385-main {
        padding-bottom: 2rem;
    }
}

/* Carousel/Slider */
.g385-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--g385-radius-lg) var(--g385-radius-lg);
}

.g385-slides-container {
    position: relative;
    height: 200px;
}

.g385-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.g385-slide-active {
    opacity: 1;
}

.g385-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g385-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.g385-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(253, 245, 230, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.g385-dot-active {
    background: var(--g385-accent-gold);
}

/* Section Styles */
.g385-section {
    padding: 2rem 1.2rem;
}

.g385-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g385-accent-gold);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.g385-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--g385-accent-gold), var(--g385-accent-blue));
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Game Grid */
.g385-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.g385-game-card {
    background: linear-gradient(145deg, #2d3e4f 0%, var(--g385-bg-dark) 100%);
    border-radius: var(--g385-radius);
    padding: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(205, 133, 63, 0.2);
}

.g385-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--g385-accent-gold);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.3);
}

.g385-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.4rem;
}

.g385-game-name {
    font-size: 1rem;
    color: var(--g385-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.g385-category-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.g385-category-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--g385-accent-gold), #b8732e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--g385-text-light);
    font-size: 1.4rem;
}

.g385-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g385-cream);
}

/* Content Cards */
.g385-card {
    background: linear-gradient(145deg, #2d3e4f 0%, var(--g385-bg-dark) 100%);
    border-radius: var(--g385-radius-lg);
    padding: 1.6rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(205, 133, 63, 0.15);
}

.g385-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--g385-accent-gold);
    margin-bottom: 1rem;
}

.g385-card-text {
    color: var(--g385-text-muted);
    line-height: 1.6;
    font-size: 1.3rem;
}

/* Features List */
.g385-features {
    display: grid;
    gap: 1rem;
}

.g385-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(205, 133, 63, 0.1);
    border-radius: var(--g385-radius);
}

.g385-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--g385-accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--g385-bg-dark);
    font-size: 1.6rem;
    flex-shrink: 0;
}

.g385-feature-content h4 {
    color: var(--g385-cream);
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.g385-feature-content p {
    color: var(--g385-text-muted);
    font-size: 1.2rem;
}

/* Promo Link Styles */
.g385-promo-link {
    color: var(--g385-accent-gold);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.g385-promo-link:hover {
    color: var(--g385-accent-blue);
    text-decoration: underline;
}

.g385-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--g385-accent-gold) 0%, #b8732e 100%);
    color: var(--g385-text-light);
    padding: 1rem 2.4rem;
    border-radius: var(--g385-radius);
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
}

.g385-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.5);
}

/* Footer */
.g385-footer {
    background: linear-gradient(180deg, #1a252f 0%, #0f161c 100%);
    padding: 2rem 1.2rem;
}

.g385-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.g385-footer-link {
    color: var(--g385-text-muted);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.g385-footer-link:hover {
    color: var(--g385-accent-gold);
}

.g385-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.g385-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.g385-partner-logo:hover {
    opacity: 1;
}

.g385-copyright {
    text-align: center;
    color: var(--g385-text-muted);
    font-size: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(253, 245, 230, 0.1);
}

/* Mobile Bottom Navigation */
.g385-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a252f 0%, #0f161c 100%);
    height: 64px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(205, 133, 63, 0.3);
    max-width: 430px;
    margin: 0 auto;
}

.g385-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--g385-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
}

.g385-nav-btn:hover,
.g385-nav-btn.g385-active {
    color: var(--g385-accent-gold);
    transform: scale(1.1);
}

.g385-nav-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.g385-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

@media (min-width: 769px) {
    .g385-bottom-nav {
        display: none;
    }
}

/* Back to Top Button */
.g385-back-to-top {
    position: fixed;
    bottom: 80px;
    right: 1.2rem;
    width: 44px;
    height: 44px;
    background: var(--g385-accent-gold);
    color: var(--g385-bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--g385-shadow);
}

.g385-visible {
    opacity: 1;
    visibility: visible;
}

.g385-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(205, 133, 63, 0.5);
}

/* Touch States */
.g385-touch-active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* RTP Stats */
.g385-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.g385-stat-item {
    background: rgba(135, 206, 235, 0.1);
    border-radius: var(--g385-radius);
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(135, 206, 235, 0.2);
}

.g385-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--g385-accent-blue);
}

.g385-stat-label {
    font-size: 1.1rem;
    color: var(--g385-text-muted);
    margin-top: 0.4rem;
}

/* Utility Classes */
.g385-text-center {
    text-align: center;
}

.g385-mb-1 {
    margin-bottom: 1rem;
}

.g385-mb-2 {
    margin-bottom: 2rem;
}

.g385-mt-2 {
    margin-top: 2rem;
}

/* Responsive Adjustments */
@media (max-width: 380px) {
    .g385-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .g385-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.1rem;
    }
}
