/**
 * Casino Plus Login - Core Stylesheet
 * Version: 1.0.0
 * Prefix: g545-
 * Color Palette: #0A0A0A | #7B68EE | #E9967A | #9932CC | #BA55D3
 */

/* CSS Variables */
:root {
    --g545-primary: #7B68EE;
    --g545-secondary: #9932CC;
    --g545-accent: #BA55D3;
    --g545-highlight: #E9967A;
    --g545-bg-dark: #0A0A0A;
    --g545-bg-card: #1A1A2E;
    --g545-bg-gradient: linear-gradient(135deg, #0A0A0A 0%, #1A1A2E 100%);
    --g545-text-light: #FFFFFF;
    --g545-text-muted: #B0B0B0;
    --g545-border-color: rgba(123, 104, 238, 0.3);
    --g545-shadow: 0 4px 20px rgba(123, 104, 238, 0.2);
    --g545-radius: 12px;
    --g545-radius-sm: 8px;
    --g545-transition: all 0.3s ease;
}

/* 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: var(--g545-bg-dark);
    color: var(--g545-text-light);
    line-height: 1.5;
    font-size: 1.6rem;
    min-height: 100vh;
    max-width: 430px;
    margin: 0 auto;
}

a {
    color: var(--g545-primary);
    text-decoration: none;
    transition: var(--g545-transition);
}

a:hover {
    color: var(--g545-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.g545-container {
    width: 100%;
    padding: 0 1.6rem;
    margin: 0 auto;
}

.g545-wrapper {
    max-width: 430px;
    margin: 0 auto;
}

/* Header */
.g545-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--g545-border-color);
    z-index: 1000;
    padding: 1rem 0;
}

.g545-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.6rem;
    max-width: 430px;
    margin: 0 auto;
}

.g545-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g545-logo img {
    width: 32px;
    height: 32px;
}

.g545-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--g545-primary), var(--g545-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.g545-header-actions {
    display: flex;
    gap: 0.8rem;
}

.g545-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: var(--g545-radius-sm);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--g545-transition);
    border: none;
    min-height: 44px;
}

.g545-btn-primary {
    background: linear-gradient(135deg, var(--g545-primary), var(--g545-secondary));
    color: var(--g545-text-light);
}

.g545-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--g545-shadow);
}

.g545-btn-outline {
    background: transparent;
    border: 2px solid var(--g545-primary);
    color: var(--g545-primary);
}

.g545-btn-outline:hover {
    background: var(--g545-primary);
    color: var(--g545-text-light);
}

.g545-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.g545-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--g545-text-light);
    transition: var(--g545-transition);
}

/* Mobile Menu */
.g545-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--g545-bg-card);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.pro451-menu-active {
    right: 0 !important;
}

.g545-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--g545-transition);
}

.pro451-overlay-active {
    opacity: 1;
    visibility: visible;
}

.g545-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--g545-border-color);
}

.g545-menu-close {
    background: none;
    border: none;
    color: var(--g545-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.g545-nav-list {
    list-style: none;
}

.g545-nav-item {
    margin-bottom: 1rem;
}

.g545-nav-link {
    display: block;
    padding: 1rem;
    color: var(--g545-text-light);
    border-radius: var(--g545-radius-sm);
    transition: var(--g545-transition);
}

.g545-nav-link:hover {
    background: rgba(123, 104, 238, 0.2);
    color: var(--g545-primary);
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero Slider */
.g545-hero-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0 0 var(--g545-radius) var(--g545-radius);
}

.g545-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    cursor: pointer;
}

.g545-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g545-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.g545-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--g545-transition);
}

.pro451-dot-active, .g545-slide-dot:hover {
    background: var(--g545-primary);
}

/* Section Titles */
.g545-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--g545-text-light);
    position: relative;
    padding-left: 1rem;
}

.g545-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: linear-gradient(180deg, var(--g545-primary), var(--g545-accent));
    border-radius: 2px;
}

/* Game Grid */
.g545-game-section {
    padding: 2rem 1.6rem;
}

.g545-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.g545-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem;
    background: var(--g545-bg-card);
    border-radius: var(--g545-radius-sm);
    cursor: pointer;
    transition: var(--g545-transition);
    border: 1px solid transparent;
}

.g545-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--g545-primary);
    box-shadow: var(--g545-shadow);
}

.g545-game-img {
    width: 60px;
    height: 60px;
    border-radius: var(--g545-radius-sm);
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.g545-game-name {
    font-size: 1.1rem;
    text-align: center;
    color: var(--g545-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

/* Category Tabs */
.g545-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--g545-primary);
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.g545-category-title i {
    font-size: 2rem;
}

/* Content Sections */
.g545-content-section {
    padding: 2rem 1.6rem;
    background: var(--g545-bg-card);
    margin: 1rem 0;
    border-radius: var(--g545-radius);
}

.g545-content-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--g545-primary);
}

.g545-content-section p {
    color: var(--g545-text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.g545-content-section ul {
    list-style: none;
    padding-left: 0;
}

.g545-content-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--g545-text-muted);
}

.g545-content-section li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--g545-primary);
}

/* Promo Links */
.g545-promo-link {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, var(--g545-primary), var(--g545-secondary));
    color: var(--g545-text-light) !important;
    border-radius: var(--g545-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--g545-transition);
    border: none;
    text-align: center;
}

.g545-promo-link:hover {
    transform: scale(1.05);
    box-shadow: var(--g545-shadow);
    color: var(--g545-text-light);
}

.g545-text-link {
    color: var(--g545-highlight);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.g545-text-link:hover {
    color: var(--g545-accent);
}

/* Footer */
.g545-footer {
    background: var(--g545-bg-card);
    padding: 2rem 1.6rem;
    margin-top: 2rem;
    border-top: 1px solid var(--g545-border-color);
}

.g545-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.g545-footer-link {
    color: var(--g545-text-muted);
    font-size: 1.2rem;
    transition: var(--g545-transition);
}

.g545-footer-link:hover {
    color: var(--g545-primary);
}

.g545-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.g545-partner-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: var(--g545-transition);
}

.g545-partner-img:hover {
    opacity: 1;
}

.g545-copyright {
    text-align: center;
    color: var(--g545-text-muted);
    font-size: 1.2rem;
}

/* Bottom Navigation */
.g545-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, var(--g545-bg-card), #0D0D1A);
    border-top: 1px solid var(--g545-border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .g545-bottom-nav {
        display: none;
    }
}

.g545-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--g545-transition);
    color: var(--g545-text-muted);
    border-radius: 12px;
}

.g545-nav-btn:hover, .g545-nav-btn.active {
    color: var(--g545-primary);
    background: rgba(123, 104, 238, 0.1);
}

.g545-nav-btn i {
    font-size: 22px;
    margin-bottom: 2px;
}

.g545-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Touch Feedback */
.pro451-touch-active {
    opacity: 0.8;
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 380px) {
    .g545-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .g545-game-img {
        width: 50px;
        height: 50px;
    }

    .g545-game-name {
        font-size: 1rem;
    }
}

/* Utilities */
.g545-mt-1 { margin-top: 0.5rem; }
.g545-mt-2 { margin-top: 1rem; }
.g545-mt-3 { margin-top: 1.5rem; }
.g545-mb-1 { margin-bottom: 0.5rem; }
.g545-mb-2 { margin-bottom: 1rem; }
.g545-mb-3 { margin-bottom: 1.5rem; }
.g545-text-center { text-align: center; }
.g545-text-primary { color: var(--g545-primary); }
.g545-text-highlight { color: var(--g545-highlight); }
.g545-font-bold { font-weight: 700; }
