/**
 * Super Ace 2016 - Main Stylesheet
 * All classes use prefix "pg44-" for namespace isolation
 * Mobile-first responsive design (max-width: 430px)
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --pg44-primary: #D2B48C;
    --pg44-secondary: #999999;
    --pg44-accent: #00BFFF;
    --pg44-gold: #DEB887;
    --pg44-light: #F5DEB3;
    --pg44-dark: #2E4057;
    --pg44-bg: #1a2533;
    --pg44-bg-light: #243447;
    --pg44-text: #ffffff;
    --pg44-text-muted: #b0b8c4;
    --pg44-success: #28a745;
    --pg44-danger: #dc3545;
    --pg44-gradient: linear-gradient(135deg, var(--pg44-dark) 0%, var(--pg44-bg) 100%);
    --pg44-header-height: 56px;
    --pg44-bottom-nav-height: 60px;
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    background: var(--pg44-gradient);
    color: var(--pg44-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Main content padding for bottom nav */
@media (max-width: 768px) {
    main, .pg44-main {
        padding-bottom: 80px;
    }
}

/* Container */
.pg44-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.pg44-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--pg44-header-height);
    background: var(--pg44-dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.pg44-header-scrolled {
    background: rgba(46, 64, 87, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.pg44-header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg44-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.pg44-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pg44-gold);
    text-decoration: none;
}

.pg44-header-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pg44-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pg44-btn-primary {
    background: var(--pg44-accent);
    color: var(--pg44-dark);
}

.pg44-btn-primary:hover {
    background: #00a8e6;
    transform: scale(1.02);
}

.pg44-btn-secondary {
    background: transparent;
    color: var(--pg44-light);
    border: 1px solid var(--pg44-light);
}

.pg44-btn-secondary:hover {
    background: var(--pg44-light);
    color: var(--pg44-dark);
}

.pg44-menu-btn {
    background: transparent;
    border: none;
    color: var(--pg44-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.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;
}

.pg44-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pg44-bg);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.pg44-menu-active {
    right: 0;
}

.pg44-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pg44-menu-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pg44-gold);
}

.pg44-menu-close {
    background: transparent;
    border: none;
    color: var(--pg44-text);
    font-size: 2rem;
    cursor: pointer;
}

.pg44-menu-links {
    list-style: none;
}

.pg44-menu-links li {
    margin-bottom: 0.5rem;
}

.pg44-menu-links a {
    display: block;
    padding: 1rem;
    color: var(--pg44-text);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pg44-menu-links a:hover {
    background: var(--pg44-bg-light);
    color: var(--pg44-accent);
}

/* Carousel */
.pg44-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-top: var(--pg44-header-height);
}

.pg44-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pg44-slide-active {
    opacity: 1;
}

.pg44-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg44-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.pg44-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
}

.pg44-dot-active {
    background: var(--pg44-accent);
}

/* Section Styles */
.pg44-section {
    padding: 2rem 0;
}

.pg44-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg44-gold);
    margin-bottom: 1.5rem;
    text-align: center;
}

.pg44-subtitle {
    font-size: 1.4rem;
    color: var(--pg44-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.pg44-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.pg44-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.pg44-game-item:hover {
    transform: scale(1.05);
}

.pg44-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.4rem;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.pg44-game-item:hover .pg44-game-icon {
    border-color: var(--pg44-accent);
}

.pg44-game-name {
    font-size: 1rem;
    color: var(--pg44-text);
    text-align: center;
    line-height: 1.2;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.pg44-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pg44-accent);
    margin: 1.5rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--pg44-accent);
}

/* Cards */
.pg44-card {
    background: var(--pg44-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.pg44-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pg44-gold);
    margin-bottom: 1rem;
}

.pg44-card-text {
    font-size: 1.3rem;
    color: var(--pg44-text-muted);
    line-height: 1.6;
}

/* Features Grid */
.pg44-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pg44-feature-item {
    background: var(--pg44-bg-light);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
}

.pg44-feature-icon {
    font-size: 2.4rem;
    color: var(--pg44-accent);
    margin-bottom: 0.8rem;
}

.pg44-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pg44-text);
    margin-bottom: 0.4rem;
}

.pg44-feature-desc {
    font-size: 1.1rem;
    color: var(--pg44-text-muted);
}

/* Promotional Links */
.pg44-promo-link {
    display: inline-block;
    color: var(--pg44-accent);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

.pg44-promo-link:hover {
    color: var(--pg44-gold);
}

.pg44-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--pg44-accent) 0%, #0099cc 100%);
    color: var(--pg44-dark);
    font-size: 1.4rem;
    font-weight: 700;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg44-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,191,255,0.4);
}

/* Footer */
.pg44-footer {
    background: var(--pg44-dark);
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.pg44-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pg44-footer-desc {
    font-size: 1.2rem;
    color: var(--pg44-text-muted);
    max-width: 300px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.pg44-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pg44-footer-link {
    font-size: 1.1rem;
    color: var(--pg44-light);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pg44-footer-link:hover {
    background: var(--pg44-bg-light);
    color: var(--pg44-accent);
}

.pg44-footer-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.pg44-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--pg44-text-muted);
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Bottom Navigation */
.pg44-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--pg44-bottom-nav-height);
    background: linear-gradient(180deg, var(--pg44-dark) 0%, #1a2533 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .pg44-bottom-nav {
        display: none;
    }
}

.pg44-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.pg44-nav-item:hover {
    background: rgba(0,191,255,0.1);
}

.pg44-nav-item.active {
    color: var(--pg44-accent);
}

.pg44-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.pg44-nav-text {
    font-size: 1rem;
    color: var(--pg44-text-muted);
}

.pg44-nav-item:hover .pg44-nav-text,
.pg44-nav-item.active .pg44-nav-text {
    color: var(--pg44-accent);
}

/* Utilities */
.pg44-text-center { text-align: center; }
.pg44-text-gold { color: var(--pg44-gold); }
.pg44-text-accent { color: var(--pg44-accent); }
.pg44-mt-1 { margin-top: 1rem; }
.pg44-mb-1 { margin-bottom: 1rem; }
.pg44-mt-2 { margin-top: 2rem; }
.pg44-mb-2 { margin-bottom: 2rem; }

/* List Styles */
.pg44-list {
    list-style: none;
    padding: 0;
}

.pg44-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 1.3rem;
    color: var(--pg44-text-muted);
}

.pg44-list li:last-child {
    border-bottom: none;
}

/* Testimonials */
.pg44-testimonial {
    background: var(--pg44-bg-light);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.pg44-testimonial-text {
    font-size: 1.3rem;
    color: var(--pg44-text);
    font-style: italic;
    margin-bottom: 0.8rem;
}

.pg44-testimonial-author {
    font-size: 1.2rem;
    color: var(--pg44-accent);
    font-weight: 600;
}

/* Payment Methods */
.pg44-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.pg44-payment-item {
    background: var(--pg44-bg-light);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    color: var(--pg44-text);
}

/* Winners Showcase */
.pg44-winner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--pg44-bg-light);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.8rem;
}

.pg44-winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pg44-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--pg44-dark);
}

.pg44-winner-info {
    flex: 1;
}

.pg44-winner-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pg44-text);
}

.pg44-winner-game {
    font-size: 1.1rem;
    color: var(--pg44-text-muted);
}

.pg44-winner-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pg44-gold);
}

/* RTP Table */
.pg44-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
}

.pg44-rtp-table th,
.pg44-rtp-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.pg44-rtp-table th {
    background: var(--pg44-bg-light);
    color: var(--pg44-gold);
    font-weight: 600;
}

.pg44-rtp-table td {
    color: var(--pg44-text-muted);
}

/* Responsive adjustments */
@media (max-width: 360px) {
    .pg44-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pg44-game-icon {
        width: 50px;
        height: 50px;
    }
}

@media (min-width: 769px) {
    .pg44-container {
        max-width: 768px;
    }

    .pg44-header {
        padding: 0 2rem;
    }

    .pg44-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .pg44-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
