/* Bingo Plus Pro - Main Layout CSS */
/* All classes prefixed with pgef for namespace isolation */

/* CSS Variables - Color Palette */
:root {
    --pgef-teal: #48D1CC;
    --pgef-pink-light: #FFB3FF;
    --pgef-pink-dark: #AD1457;
    --pgef-silver: #C0C0C0;
    --pgef-black: #1E1E1E;
    --pgef-hot-pink: #FF69B4;
    --pgef-white: #ffffff;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--pgef-black);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    overflow-x: hidden;
}

.pgef-loaded * {
    animation: pgef-fadeIn 0.3s ease-in;
}

@keyframes pgef-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header Styles */
.pgef-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--pgef-pink-dark) 0%, var(--pgef-black) 100%);
    padding: 12px 16px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pgef-header-container {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pgef-logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--pgef-white);
}

.pgef-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--pgef-teal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgef-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--pgef-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pgef-header-buttons {
    display: flex;
    gap: 8px;
}

.pgef-register-btn,
.pgef-login-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgef-register-btn {
    background: var(--pgef-teal);
    color: var(--pgef-black);
}

.pgef-register-btn:hover {
    background: var(--pgef-pink-light);
    transform: scale(1.05);
}

.pgef-login-btn {
    background: transparent;
    color: var(--pgef-white);
    border: 2px solid var(--pgef-teal);
}

.pgef-login-btn:hover {
    background: var(--pgef-teal);
    color: var(--pgef-black);
}

.pgef-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--pgef-white);
    font-size: 24px;
    cursor: pointer;
}

/* Main Content */
.pgef-main {
    margin-top: 64px;
    padding: 0 0 80px 0;
    max-width: 430px;
    margin-left: auto;
    margin-right: auto;
    min-height: 100vh;
}

/* Hero Carousel */
.pgef-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0;
}

.pgef-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pgef-carousel-slide.pgef-active {
    opacity: 1;
}

.pgef-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgef-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.pgef-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pgef-carousel-dot.pgef-active {
    background: var(--pgef-teal);
    width: 24px;
    border-radius: 5px;
}

/* Content Sections */
.pgef-section {
    padding: 24px 16px;
}

.pgef-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pgef-pink-light);
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Game Grid */
.pgef-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.pgef-game-card {
    background: var(--pgef-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.pgef-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(72, 209, 204, 0.4);
}

.pgef-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.pgef-game-name {
    padding: 8px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: var(--pgef-black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* CTA Buttons */
.pgef-cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--pgef-teal) 0%, var(--pgef-hot-pink) 100%);
    color: var(--pgef-white);
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.pgef-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

/* Info Cards */
.pgef-info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pgef-info-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pgef-teal);
    margin-bottom: 12px;
}

.pgef-info-content {
    font-size: 14px;
    color: var(--pgef-silver);
    line-height: 1.8;
}

/* Footer */
.pgef-footer {
    background: linear-gradient(135deg, var(--pgef-pink-dark) 0%, var(--pgef-black) 100%);
    padding: 32px 16px 100px 16px;
    color: var(--pgef-white);
}

.pgef-footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--pgef-pink-light);
}

.pgef-footer-link {
    color: var(--pgef-silver);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: block;
    padding: 8px 0;
}

.pgef-footer-link:hover {
    color: var(--pgef-teal);
}

.pgef-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.pgef-partner-logo {
    width: 60px;
    height: 30px;
    background: var(--pgef-white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--pgef-black);
    font-weight: 600;
}

.pgef-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: var(--pgef-silver);
}

/* Mobile Menu */
.pgef-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;
}

.pgef-menu-overlay.pgef-active {
    opacity: 1;
    visibility: visible;
}

.pgef-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pgef-black);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
}

.pgef-mobile-menu.pgef-active {
    right: 0;
}

.pgef-menu-header {
    background: linear-gradient(135deg, var(--pgef-pink-dark) 0%, var(--pgef-black) 100%);
    padding: 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pgef-menu-close {
    background: none;
    border: none;
    color: var(--pgef-white);
    font-size: 24px;
    cursor: pointer;
}

.pgef-menu-links {
    padding: 20px 16px;
}

.pgef-mobile-nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--pgef-silver);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.pgef-mobile-nav-link:hover,
.pgef-mobile-nav-link.pgef-active {
    background: rgba(72, 209, 204, 0.1);
    color: var(--pgef-teal);
    padding-left: 20px;
}

/* Mobile Bottom Navigation */
.pgef-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--pgef-pink-dark) 0%, var(--pgef-black) 100%);
    padding: 8px 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(72, 209, 204, 0.3);
}

.pgef-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--pgef-silver);
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pgef-bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.pgef-bottom-nav-item.pgef-active {
    color: var(--pgef-teal);
}

.pgef-nav-icon {
    font-size: 24px;
}

.pgef-nav-label {
    font-size: 11px;
    font-weight: 600;
}

/* Scroll Animations */
.pgef-animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.pgef-animate-on-scroll.pgef-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (min-width: 769px) {
    .pgef-mobile-bottom-nav {
        display: none;
    }
    .pgef-main {
        padding-bottom: 0;
    }
    .pgef-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .pgef-menu-toggle {
        display: block;
    }
    .pgef-main {
        padding-bottom: 80px;
    }
}

/* Typography */
h1, h2, h3 {
    color: var(--pgef-pink-light);
    font-weight: 700;
    margin-bottom: 16px;
}

h1 { font-size: 26px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--pgef-silver);
}

a {
    color: var(--pgef-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--pgef-hot-pink);
}

/* Lists */
.pgef-feature-list {
    list-style: none;
    padding: 0;
}

.pgef-feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--pgef-silver);
}

.pgef-feature-list li:before {
    content: "✓";
    color: var(--pgef-teal);
    font-weight: 700;
    font-size: 18px;
}
