/**
 * 365 Casino Login - Theme Styles
 * Website: 365casinologin.click
 * Prefix: pg6a-
 */

/* CSS Variables */
:root {
    --pg6a-primary: #FFCC33;
    --pg6a-secondary: #495057;
    --pg6a-bg: #0D1117;
    --pg6a-bg-light: #161B22;
    --pg6a-bg-card: #21262D;
    --pg6a-text: #F0F6FC;
    --pg6a-text-muted: #8B949E;
    --pg6a-border: #30363D;
    --pg6a-success: #3FB950;
    --pg6a-warning: #D29922;
    --pg6a-danger: #F85149;
    --pg6a-gradient: linear-gradient(135deg, #FFCC33 0%, #FF9500 100%);
    --pg6a-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --pg6a-radius: 8px;
    --pg6a-radius-lg: 16px;
    --pg6a-header-height: 60px;
    --pg6a-bottom-nav-height: 64px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--pg6a-bg);
    color: var(--pg6a-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body.pg6a-menu-open {
    overflow: hidden;
}

a {
    color: var(--pg6a-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFDD55;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.pg6a-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

.pg6a-wrapper {
    width: 100%;
    padding: 16px;
}

.pg6a-grid {
    display: grid;
    gap: 16px;
}

/* Header */
.pg6a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--pg6a-header-height);
    background: var(--pg6a-bg-light);
    border-bottom: 1px solid var(--pg6a-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.pg6a-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg6a-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.pg6a-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--pg6a-primary);
}

.pg6a-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg6a-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--pg6a-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.pg6a-btn-primary {
    background: var(--pg6a-gradient);
    color: var(--pg6a-bg);
}

.pg6a-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--pg6a-shadow);
}

.pg6a-btn-outline {
    background: transparent;
    color: var(--pg6a-primary);
    border: 1px solid var(--pg6a-primary);
}

.pg6a-btn-outline:hover {
    background: var(--pg6a-primary);
    color: var(--pg6a-bg);
}

.pg6a-menu-toggle {
    background: transparent;
    border: none;
    color: var(--pg6a-text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.pg6a-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: all 0.3s ease;
}

.pg6a-menu-overlay.pg6a-active {
    opacity: 1;
    visibility: visible;
}

.pg6a-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pg6a-bg-light);
    z-index: 9999;
    padding: 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.pg6a-mobile-menu.pg6a-active {
    right: 0;
}

.pg6a-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pg6a-border);
}

.pg6a-menu-close {
    background: transparent;
    border: none;
    color: var(--pg6a-text);
    font-size: 24px;
    cursor: pointer;
}

.pg6a-mobile-menu ul {
    list-style: none;
}

.pg6a-mobile-menu li {
    margin-bottom: 8px;
}

.pg6a-mobile-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--pg6a-text);
    border-radius: var(--pg6a-radius);
    transition: background 0.3s ease;
}

.pg6a-mobile-menu a:hover {
    background: var(--pg6a-bg-card);
    color: var(--pg6a-primary);
}

/* Main Content */
.pg6a-main {
    padding-top: var(--pg6a-header-height);
    padding-bottom: calc(var(--pg6a-bottom-nav-height) + 20px);
}

/* Carousel */
.pg6a-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--pg6a-radius-lg);
    margin-bottom: 20px;
}

.pg6a-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pg6a-slide.pg6a-active {
    opacity: 1;
}

.pg6a-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg6a-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.pg6a-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.pg6a-carousel-dot.pg6a-active {
    background: var(--pg6a-primary);
}

/* Section */
.pg6a-section {
    margin-bottom: 24px;
}

.pg6a-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.pg6a-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pg6a-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg6a-section-title i {
    color: var(--pg6a-primary);
}

.pg6a-view-all {
    font-size: 14px;
    color: var(--pg6a-primary);
}

/* Game Grid */
.pg6a-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pg6a-game-card {
    background: var(--pg6a-bg-card);
    border-radius: var(--pg6a-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pg6a-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pg6a-shadow);
}

.pg6a-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.pg6a-game-name {
    padding: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--pg6a-text);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features Section */
.pg6a-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pg6a-feature-card {
    background: var(--pg6a-bg-card);
    border-radius: var(--pg6a-radius);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg6a-feature-card:hover {
    background: var(--pg6a-bg-light);
    border-color: var(--pg6a-primary);
}

.pg6a-feature-icon {
    font-size: 32px;
    color: var(--pg6a-primary);
    margin-bottom: 8px;
}

.pg6a-feature-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--pg6a-text);
    margin-bottom: 4px;
}

.pg6a-feature-desc {
    font-size: 12px;
    color: var(--pg6a-text-muted);
}

/* Content Card */
.pg6a-content-card {
    background: var(--pg6a-bg-card);
    border-radius: var(--pg6a-radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.pg6a-content-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--pg6a-primary);
    margin-bottom: 12px;
}

.pg6a-content-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--pg6a-text);
    margin-bottom: 8px;
    margin-top: 16px;
}

.pg6a-content-card p {
    font-size: 14px;
    color: var(--pg6a-text-muted);
    margin-bottom: 12px;
    line-height: 1.7;
}

.pg6a-content-card ul, .pg6a-content-card ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.pg6a-content-card li {
    font-size: 14px;
    color: var(--pg6a-text-muted);
    margin-bottom: 8px;
    list-style: disc;
}

.pg6a-content-card ol li {
    list-style: decimal;
}

/* FAQ Accordion */
.pg6a-accordion-item {
    background: var(--pg6a-bg-card);
    border-radius: var(--pg6a-radius);
    margin-bottom: 8px;
    overflow: hidden;
}

.pg6a-accordion-header {
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--pg6a-text);
    transition: background 0.3s ease;
}

.pg6a-accordion-header:hover {
    background: var(--pg6a-bg-light);
}

.pg6a-accordion-icon {
    font-size: 16px;
    color: var(--pg6a-primary);
    transition: transform 0.3s ease;
}

.pg6a-accordion-item.pg6a-active .pg6a-accordion-icon {
    transform: rotate(180deg);
}

.pg6a-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.pg6a-accordion-item.pg6a-active .pg6a-accordion-content {
    max-height: 500px;
}

.pg6a-accordion-body {
    padding: 0 16px 16px;
    font-size: 14px;
    color: var(--pg6a-text-muted);
    line-height: 1.7;
}

/* Footer */
.pg6a-footer {
    background: var(--pg6a-bg-light);
    padding: 24px 16px;
    margin-top: 24px;
}

.pg6a-footer-partners {
    margin-bottom: 20px;
}

.pg6a-footer-partners h4 {
    font-size: 14px;
    color: var(--pg6a-text-muted);
    margin-bottom: 12px;
}

.pg6a-partners-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.pg6a-partner-logo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--pg6a-bg-card);
    border-radius: 4px;
    padding: 4px;
}

.pg6a-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.pg6a-footer-links a {
    font-size: 13px;
    color: var(--pg6a-text-muted);
}

.pg6a-footer-links a:hover {
    color: var(--pg6a-primary);
}

.pg6a-footer-copyright {
    text-align: center;
    font-size: 12px;
    color: var(--pg6a-text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--pg6a-border);
}

/* Bottom Navigation */
.pg6a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--pg6a-bottom-nav-height);
    background: linear-gradient(180deg, var(--pg6a-bg-light) 0%, var(--pg6a-bg) 100%);
    border-top: 1px solid var(--pg6a-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.pg6a-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--pg6a-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.pg6a-nav-item:hover, .pg6a-nav-item.pg6a-active {
    color: var(--pg6a-primary);
    background: rgba(255, 204, 51, 0.1);
}

.pg6a-nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.pg6a-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Scroll to Top */
.pg6a-scroll-top {
    position: fixed;
    bottom: calc(var(--pg6a-bottom-nav-height) + 20px);
    right: 16px;
    width: 44px;
    height: 44px;
    background: var(--pg6a-primary);
    color: var(--pg6a-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
}

.pg6a-scroll-top.pg6a-visible {
    opacity: 1;
    visibility: visible;
}

.pg6a-scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--pg6a-shadow);
}

/* CTA Banner */
.pg6a-cta-banner {
    background: var(--pg6a-gradient);
    border-radius: var(--pg6a-radius-lg);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.pg6a-cta-banner h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--pg6a-bg);
    margin-bottom: 8px;
}

.pg6a-cta-banner p {
    font-size: 14px;
    color: var(--pg6a-bg);
    margin-bottom: 16px;
    opacity: 0.9;
}

.pg6a-cta-banner .pg6a-btn {
    background: var(--pg6a-bg);
    color: var(--pg6a-primary);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pg6a-bottom-nav {
        display: none;
    }

    .pg6a-main {
        padding-bottom: 20px;
    }

    .pg6a-container {
        max-width: 768px;
    }

    .pg6a-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .pg6a-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive adjustments */
@media (max-width: 360px) {
    .pg6a-game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pg6a-features {
        grid-template-columns: 1fr;
    }

    .pg6a-logo-text {
        font-size: 16px;
    }
}

/* Animation utilities */
.pg6a-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button size variants */
.pg6a-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.pg6a-btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

/* Text utilities */
.pg6a-text-primary {
    color: var(--pg6a-primary);
}

.pg6a-text-muted {
    color: var(--pg6a-text-muted);
}

.pg6a-text-center {
    text-align: center;
}

/* Spacing utilities */
.pg6a-mt-16 {
    margin-top: 16px;
}

.pg6a-mb-16 {
    margin-bottom: 16px;
}

.pg6a-py-20 {
    padding-top: 20px;
    padding-bottom: 20px;
}
