/* 777 Casino - Theme Stylesheet */
/* All classes use pg44- prefix for namespace isolation */

/* CSS Variables - Color Palette */
:root {
    --pg44-primary-dark: #0F0F23;
    --pg44-primary-green: #008000;
    --pg44-medium-gray: #808080;
    --pg44-light-gray: #DCDCDC;
    --pg44-dark-gray: #3C3C3C;
    --pg44-white: #FFFFFF;
    --pg44-black: #000000;
    --pg44-overlay: rgba(15, 15, 35, 0.95);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--pg44-primary-dark);
    color: var(--pg44-light-gray);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Container */
.pg44-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* Header Styles */
.pg44-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--pg44-primary-dark) 0%, var(--pg44-dark-gray) 100%);
    padding: 12px 16px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 128, 0, 0.3);
    border-bottom: 2px solid var(--pg44-primary-green);
}

.pg44-header-content {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg44-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--pg44-primary-green);
    text-decoration: none;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(0, 128, 0, 0.5);
}

.pg44-header-buttons {
    display: flex;
    gap: 8px;
}

.pg44-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pg44-btn-register {
    background: var(--pg44-primary-green);
    color: var(--pg44-white);
    box-shadow: 0 4px 15px rgba(0, 128, 0, 0.4);
}

.pg44-btn-register:hover {
    background: #00A000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 128, 0, 0.6);
}

.pg44-btn-login {
    background: transparent;
    color: var(--pg44-white);
    border: 2px solid var(--pg44-light-gray);
}

.pg44-btn-login:hover {
    background: var(--pg44-light-gray);
    color: var(--pg44-primary-dark);
}

/* Mobile Menu Button */
.pg44-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
}

.pg44-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--pg44-light-gray);
    transition: all 0.3s ease;
}

.pg44-menu-btn:hover span {
    background: var(--pg44-primary-green);
}

/* Mobile Menu Overlay */
.pg44-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;
}

.pg44-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.pg44-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pg44-overlay);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 60px 20px 20px;
    overflow-y: auto;
}

.pg44-menu-active {
    right: 0;
}

.pg44-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    color: var(--pg44-light-gray);
    cursor: pointer;
    padding: 8px;
}

.pg44-menu-close:hover {
    color: var(--pg44-primary-green);
}

.pg44-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pg44-menu-link {
    padding: 14px 16px;
    color: var(--pg44-light-gray);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pg44-menu-link:hover {
    background: rgba(0, 128, 0, 0.2);
    color: var(--pg44-primary-green);
}

.pg44-menu-link i {
    font-size: 20px;
    width: 24px;
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    main {
        padding-bottom: 20px;
    }
}

/* Hero Section */
.pg44-hero {
    background: linear-gradient(135deg, var(--pg44-dark-gray) 0%, var(--pg44-primary-dark) 100%);
    padding: 40px 0;
    text-align: center;
    border-bottom: 3px solid var(--pg44-primary-green);
    margin-bottom: 24px;
}

.pg44-hero-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--pg44-white);
    margin-bottom: 12px;
    text-shadow: 0 0 20px rgba(0, 128, 0, 0.5);
}

.pg44-hero-subtitle {
    font-size: 16px;
    color: var(--pg44-medium-gray);
    margin-bottom: 24px;
}

.pg44-hero-cta {
    display: inline-block;
    padding: 14px 32px;
    background: var(--pg44-primary-green);
    color: var(--pg44-white);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 128, 0, 0.5);
}

.pg44-hero-cta:hover {
    background: #00A000;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 128, 0, 0.7);
}

/* Section Styles */
.pg44-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--pg44-dark-gray);
}

.pg44-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pg44-white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg44-section-title i {
    color: var(--pg44-primary-green);
}

/* Game Grid */
.pg44-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.pg44-game-item {
    background: var(--pg44-dark-gray);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.pg44-game-item:hover {
    transform: translateY(-5px);
    border-color: var(--pg44-primary-green);
    box-shadow: 0 8px 20px rgba(0, 128, 0, 0.4);
}

.pg44-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--pg44-primary-dark);
}

.pg44-game-name {
    padding: 8px;
    font-size: 12px;
    color: var(--pg44-light-gray);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Filter Buttons */
.pg44-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.pg44-filter-btn {
    padding: 8px 16px;
    background: var(--pg44-dark-gray);
    color: var(--pg44-light-gray);
    border: 2px solid var(--pg44-dark-gray);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.pg44-filter-btn:hover,
.pg44-filter-active {
    background: var(--pg44-primary-green);
    color: var(--pg44-white);
    border-color: var(--pg44-primary-green);
}

/* Content Cards */
.pg44-card {
    background: var(--pg44-dark-gray);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--pg44-medium-gray);
}

.pg44-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pg44-white);
    margin-bottom: 12px;
}

.pg44-card-content {
    font-size: 15px;
    color: var(--pg44-light-gray);
    line-height: 1.8;
}

.pg44-card-content p {
    margin-bottom: 12px;
}

.pg44-card-content a {
    color: var(--pg44-primary-green);
    text-decoration: none;
    font-weight: 600;
}

.pg44-card-content a:hover {
    text-decoration: underline;
}

/* List Styles */
.pg44-list {
    list-style: none;
    padding: 0;
}

.pg44-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--pg44-medium-gray);
    color: var(--pg44-light-gray);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pg44-list li:last-child {
    border-bottom: none;
}

.pg44-list li i {
    color: var(--pg44-primary-green);
    margin-top: 4px;
}

/* Accordion */
.pg44-accordion-item {
    background: var(--pg44-dark-gray);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--pg44-medium-gray);
}

.pg44-accordion-header {
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--pg44-white);
    transition: all 0.3s ease;
}

.pg44-accordion-header:hover {
    background: rgba(0, 128, 0, 0.1);
}

.pg44-accordion-icon {
    font-size: 20px;
    color: var(--pg44-primary-green);
}

.pg44-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.pg44-accordion-content-inner {
    padding: 16px;
    color: var(--pg44-light-gray);
    line-height: 1.8;
    border-top: 1px solid var(--pg44-medium-gray);
}

.pg44-accordion-active .pg44-accordion-content {
    max-height: 500px;
}

/* Mobile Bottom Navigation */
.pg44-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(to top, var(--pg44-primary-dark) 0%, var(--pg44-dark-gray) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 2px solid var(--pg44-primary-green);
    box-shadow: 0 -2px 10px rgba(0, 128, 0, 0.3);
}

.pg44-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--pg44-light-gray);
    text-decoration: none;
    padding: 8px;
    border-radius: 12px;
}

.pg44-nav-item:hover {
    background: rgba(0, 128, 0, 0.2);
    color: var(--pg44-primary-green);
}

.pg44-nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.pg44-nav-item span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (min-width: 769px) {
    .pg44-bottom-nav {
        display: none;
    }
}

/* Footer */
.pg44-footer {
    background: var(--pg44-dark-gray);
    padding: 32px 0 80px;
    border-top: 2px solid var(--pg44-primary-green);
}

.pg44-footer-content {
    text-align: center;
}

.pg44-footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--pg44-primary-green);
    margin-bottom: 16px;
}

.pg44-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pg44-footer-link {
    color: var(--pg44-light-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.pg44-footer-link:hover {
    color: var(--pg44-primary-green);
}

.pg44-footer-text {
    color: var(--pg44-medium-gray);
    font-size: 13px;
    line-height: 1.6;
}

@media (min-width: 769px) {
    .pg44-footer {
        padding-bottom: 32px;
    }
}

/* Scroll to Top Button */
.pg44-scroll-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 48px;
    height: 48px;
    background: var(--pg44-primary-green);
    color: var(--pg44-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 128, 0, 0.4);
}

.pg44-scroll-top-visible {
    opacity: 1;
    visibility: visible;
}

.pg44-scroll-top:hover {
    background: #00A000;
    transform: translateY(-3px);
}

/* Notifications */
.pg44-copy-notification,
.pg44-favorite-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--pg44-primary-green);
    color: var(--pg44-white);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.pg44-notification-show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Utility Classes */
.pg44-text-center {
    text-align: center;
}

.pg44-text-green {
    color: var(--pg44-primary-green);
}

.pg44-mb-16 {
    margin-bottom: 16px;
}

.pg44-mb-24 {
    margin-bottom: 24px;
}

/* Responsive Adjustments */
@media (max-width: 380px) {
    .pg44-game-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pg44-hero-title {
        font-size: 24px;
    }
}
