/**
 * bingo plus rebate - Main Stylesheet
 * Version: 1.0.0
 * All classes use 'pg6d-' prefix for namespace isolation
 * Color Palette: #FFCCCB | #BF360C | #FF9500 | #004D40 | #2D2D2D
 */

/* CSS Variables */
:root {
    --pg6d-primary: #FF9500;
    --pg6d-secondary: #BF360C;
    --pg6d-accent: #FFCCCB;
    --pg6d-dark: #2D2D2D;
    --pg6d-deep: #004D40;
    --pg6d-light: #FFFFFF;
    --pg6d-gray: #E5E5E5;
    --pg6d-text: #FFFFFF;
    --pg6d-text-dark: #2D2D2D;
    --pg6d-gradient: linear-gradient(135deg, #BF360C 0%, #FF9500 100%);
    --pg6d-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --pg6d-radius: 12px;
    --pg6d-radius-sm: 8px;
}

/* 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;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--pg6d-dark);
    color: var(--pg6d-text);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* Container */
.pg6d-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pg6d-wrapper {
    width: 100%;
    padding: 1rem 0;
}

/* Header */
.pg6d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--pg6d-deep) 0%, rgba(0, 77, 64, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.pg6d-header-scrolled {
    box-shadow: var(--pg6d-shadow);
    padding: 0.8rem 0;
}

.pg6d-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.pg6d-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg6d-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.pg6d-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pg6d-primary);
}

.pg6d-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pg6d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: var(--pg6d-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 44px;
}

.pg6d-btn-primary {
    background: var(--pg6d-gradient);
    color: var(--pg6d-light);
}

.pg6d-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 149, 0, 0.4);
}

.pg6d-btn-outline {
    background: transparent;
    border: 2px solid var(--pg6d-primary);
    color: var(--pg6d-primary);
}

.pg6d-btn-outline:hover {
    background: var(--pg6d-primary);
    color: var(--pg6d-dark);
}

/* Hamburger Menu */
.pg6d-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    cursor: pointer;
    z-index: 10001;
}

.pg6d-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--pg6d-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.pg6d-hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.pg6d-hamburger-active span:nth-child(2) {
    opacity: 0;
}

.pg6d-hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.pg6d-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--pg6d-deep);
    z-index: 9999;
    padding: 8rem 2rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.pg6d-menu-active {
    right: 0;
}

.pg6d-mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pg6d-mobile-menu li a {
    display: block;
    padding: 1.2rem 1.5rem;
    font-size: 1.5rem;
    color: var(--pg6d-text);
    border-radius: var(--pg6d-radius-sm);
    transition: all 0.3s ease;
}

.pg6d-mobile-menu li a:hover {
    background: rgba(255, 149, 0, 0.2);
    color: var(--pg6d-primary);
}

.pg6d-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pg6d-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
.pg6d-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Carousel */
.pg6d-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0 0 var(--pg6d-radius) var(--pg6d-radius);
}

.pg6d-slides {
    display: flex;
    width: 100%;
    height: 100%;
}

.pg6d-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pg6d-slide-active {
    opacity: 1;
}

.pg6d-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg6d-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.pg6d-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg6d-dot-active {
    background: var(--pg6d-primary);
    width: 24px;
    border-radius: 4px;
}

/* Sections */
.pg6d-section {
    padding: 2rem 1.5rem;
}

.pg6d-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg6d-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.pg6d-section-subtitle {
    font-size: 1.4rem;
    color: var(--pg6d-accent);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.pg6d-game-section {
    margin-bottom: 2rem;
}

.pg6d-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--pg6d-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pg6d-primary);
    display: inline-block;
}

.pg6d-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pg6d-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pg6d-game-item:hover {
    transform: scale(1.05);
}

.pg6d-game-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--pg6d-radius-sm);
    overflow: hidden;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pg6d-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg6d-game-name {
    font-size: 1.1rem;
    color: var(--pg6d-text);
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Box */
.pg6d-content-box {
    background: rgba(0, 77, 64, 0.3);
    border-radius: var(--pg6d-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 149, 0, 0.2);
}

.pg6d-content-box h2 {
    font-size: 1.8rem;
    color: var(--pg6d-primary);
    margin-bottom: 1rem;
}

.pg6d-content-box p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--pg6d-text);
    margin-bottom: 1rem;
}

.pg6d-content-box ul {
    padding-left: 2rem;
}

.pg6d-content-box li {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--pg6d-text);
    list-style: disc;
    margin-bottom: 0.5rem;
}

/* Promo Link Styles */
.pg6d-promo-link {
    color: var(--pg6d-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg6d-promo-link:hover {
    color: var(--pg6d-accent);
    text-decoration: underline;
}

.pg6d-promo-btn {
    display: inline-block;
    background: var(--pg6d-gradient);
    color: var(--pg6d-light);
    padding: 1rem 2rem;
    border-radius: var(--pg6d-radius);
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pg6d-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

/* Footer */
.pg6d-footer {
    background: var(--pg6d-deep);
    padding: 2rem 1.5rem;
    padding-bottom: 100px;
}

.pg6d-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.pg6d-footer-links a {
    font-size: 1.3rem;
    color: var(--pg6d-accent);
    transition: color 0.3s ease;
}

.pg6d-footer-links a:hover {
    color: var(--pg6d-primary);
}

.pg6d-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pg6d-partners img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pg6d-partners img:hover {
    opacity: 1;
}

.pg6d-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--pg6d-accent);
    opacity: 0.8;
}

/* Bottom Navigation */
.pg6d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, var(--pg6d-deep) 0%, rgba(0, 77, 64, 0.98) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.pg6d-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(--pg6d-accent);
}

.pg6d-nav-item:hover,
.pg6d-nav-item-active {
    color: var(--pg6d-primary);
    transform: scale(1.1);
}

.pg6d-nav-item i,
.pg6d-nav-item .material-icons-outlined {
    font-size: 24px;
    margin-bottom: 2px;
}

.pg6d-nav-item ion-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.pg6d-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pg6d-bottom-nav {
        display: none;
    }

    .pg6d-footer {
        padding-bottom: 2rem;
    }

    .pg6d-main {
        padding-bottom: 2rem;
    }
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .pg6d-main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.pg6d-text-center {
    text-align: center;
}

.pg6d-mb-1 {
    margin-bottom: 1rem;
}

.pg6d-mb-2 {
    margin-bottom: 2rem;
}

.pg6d-mt-2 {
    margin-top: 2rem;
}

.pg6d-hidden {
    display: none !important;
}

/* Animation */
@keyframes pg6d-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pg6d-animate {
    animation: pg6d-fadeIn 0.5s ease forwards;
}
