/**
 * Milyon Casino - Main Stylesheet
 * Version: 1.0.0
 * Prefix: pg9e-
 * Colors: #48D1CC | #1C2833 | #F0FDFF | #FFBF00 | #FF9800
 */

/* CSS Variables */
:root {
    --pg9e-primary: #48D1CC;
    --pg9e-secondary: #FFBF00;
    --pg9e-accent: #FF9800;
    --pg9e-bg-dark: #1C2833;
    --pg9e-bg-light: #F0FDFF;
    --pg9e-text-dark: #1C2833;
    --pg9e-text-light: #F0FDFF;
    --pg9e-gradient: linear-gradient(135deg, #48D1CC 0%, #1C2833 100%);
    --pg9e-gold: linear-gradient(135deg, #FFBF00 0%, #FF9800 100%);
    --pg9e-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --pg9e-radius: 12px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--pg9e-bg-dark);
    color: var(--pg9e-text-light);
    line-height: 1.5;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Container */
.pg9e-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pg9e-wrapper {
    padding: 2rem 0;
}

/* Header */
.pg9e-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(28, 40, 51, 0.98) 0%, rgba(28, 40, 51, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.pg9e-header-scrolled {
    box-shadow: var(--pg9e-shadow);
}

.pg9e-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg9e-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.pg9e-logo img {
    width: 32px;
    height: 32px;
}

.pg9e-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg9e-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pg9e-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.pg9e-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pg9e-btn-login {
    background: transparent;
    color: var(--pg9e-primary);
    border: 2px solid var(--pg9e-primary);
}

.pg9e-btn-login:hover {
    background: var(--pg9e-primary);
    color: var(--pg9e-bg-dark);
}

.pg9e-btn-register {
    background: var(--pg9e-gold);
    color: var(--pg9e-bg-dark);
}

.pg9e-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 191, 0, 0.4);
}

.pg9e-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.pg9e-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--pg9e-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.pg9e-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pg9e-bg-dark);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.pg9e-menu-active {
    right: 0;
}

.pg9e-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;
}

.pg9e-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pg9e-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(72, 209, 204, 0.3);
}

.pg9e-menu-close {
    background: none;
    border: none;
    color: var(--pg9e-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.pg9e-nav-list {
    list-style: none;
}

.pg9e-nav-item {
    display: block;
    padding: 1.2rem 0;
    color: var(--pg9e-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(72, 209, 204, 0.2);
    transition: all 0.3s ease;
}

.pg9e-nav-item:hover {
    color: var(--pg9e-primary);
    padding-left: 1rem;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.pg9e-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.pg9e-slides {
    display: flex;
    width: 100%;
    height: 100%;
}

.pg9e-slide {
    min-width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.pg9e-slide-active {
    opacity: 1;
}

.pg9e-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg9e-slide-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pg9e-slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg9e-dot-active {
    background: var(--pg9e-primary);
    transform: scale(1.2);
}

/* Section Styles */
.pg9e-section {
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
}

.pg9e-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg9e-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.pg9e-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--pg9e-gold);
    border-radius: 2px;
}

/* Game Grid */
.pg9e-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.pg9e-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pg9e-game-item:hover {
    transform: scale(1.05);
}

.pg9e-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--pg9e-radius);
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.pg9e-game-item:hover .pg9e-game-img {
    border-color: var(--pg9e-primary);
}

.pg9e-game-name {
    font-size: 1.1rem;
    color: var(--pg9e-text-light);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* Category Title */
.pg9e-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pg9e-secondary);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--pg9e-primary);
}

/* Info Cards */
.pg9e-info-card {
    background: linear-gradient(145deg, rgba(72, 209, 204, 0.1) 0%, rgba(28, 40, 51, 0.8) 100%);
    border-radius: var(--pg9e-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(72, 209, 204, 0.2);
}

.pg9e-info-card h3 {
    color: var(--pg9e-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.pg9e-info-card p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--pg9e-text-light);
}

/* Feature List */
.pg9e-feature-list {
    list-style: none;
    padding: 0;
}

.pg9e-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(72, 209, 204, 0.1);
}

.pg9e-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--pg9e-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pg9e-feature-icon i {
    color: var(--pg9e-text-light);
    font-size: 1.8rem;
}

/* Footer */
.pg9e-footer {
    background: linear-gradient(180deg, rgba(28, 40, 51, 0.95) 0%, rgba(28, 40, 51, 1) 100%);
    padding: 3rem 1.5rem 2rem;
    margin-top: 2rem;
}

.pg9e-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pg9e-footer-link {
    color: var(--pg9e-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(72, 209, 204, 0.1);
    transition: all 0.3s ease;
}

.pg9e-footer-link:hover {
    background: var(--pg9e-primary);
    color: var(--pg9e-bg-dark);
}

.pg9e-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pg9e-partner-logo {
    width: 50px;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pg9e-partner-logo:hover {
    opacity: 1;
}

.pg9e-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(240, 253, 255, 0.6);
    padding-top: 1.5rem;
    border-top: 1px solid rgba(72, 209, 204, 0.2);
}

/* Bottom Navigation */
.pg9e-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(28, 40, 51, 0.98) 0%, rgba(28, 40, 51, 1) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(72, 209, 204, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

@media (min-width: 769px) {
    .pg9e-bottom-nav {
        display: none;
    }
}

.pg9e-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    color: var(--pg9e-text-light);
    cursor: pointer;
    padding: 0.5rem;
    min-width: 60px;
    min-height: 50px;
    transition: all 0.3s ease;
}

.pg9e-nav-btn i {
    font-size: 22px;
}

.pg9e-nav-btn span {
    font-size: 1rem;
}

.pg9e-nav-btn:hover,
.pg9e-nav-btn.pg9e-active {
    color: var(--pg9e-primary);
}

.pg9e-nav-btn:hover i,
.pg9e-nav-btn.pg9e-active i {
    transform: scale(1.1);
}

/* Toast Notification */
.pg9e-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--pg9e-primary);
    color: var(--pg9e-bg-dark);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.pg9e-toast-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Promo Banner */
.pg9e-promo-banner {
    background: var(--pg9e-gold);
    color: var(--pg9e-bg-dark);
    padding: 1.5rem;
    text-align: center;
    border-radius: var(--pg9e-radius);
    margin: 1.5rem;
}

.pg9e-promo-banner h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.pg9e-promo-banner p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* RTP Stats */
.pg9e-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pg9e-rtp-card {
    background: rgba(72, 209, 204, 0.1);
    border-radius: var(--pg9e-radius);
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.pg9e-rtp-card:hover {
    border-color: var(--pg9e-primary);
    transform: translateY(-3px);
}

.pg9e-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg9e-secondary);
}

.pg9e-rtp-label {
    font-size: 1.1rem;
    color: var(--pg9e-text-light);
    margin-top: 0.3rem;
}

/* Utilities */
.pg9e-text-center {
    text-align: center;
}

.pg9e-text-primary {
    color: var(--pg9e-primary);
}

.pg9e-text-gold {
    color: var(--pg9e-secondary);
}

.pg9e-mb-1 {
    margin-bottom: 1rem;
}

.pg9e-mb-2 {
    margin-bottom: 2rem;
}

.pg9e-hidden {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 380px) {
    .pg9e-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pg9e-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.2rem;
    }
}
