/**
 * 2299bet Main Stylesheet
 * All classes use prefix "pge3-" for namespace isolation
 * Color palette: #8B0000 | #1B263B | #D3D3D3 | #FFB6C1 | #20B2AA | #E9967A
 */

:root {
    --pge3-primary: #8B0000;
    --pge3-bg: #1B263B;
    --pge3-bg-light: #243447;
    --pge3-text: #D3D3D3;
    --pge3-accent: #FFB6C1;
    --pge3-highlight: #20B2AA;
    --pge3-warm: #E9967A;
    --pge3-white: #FFFFFF;
    --pge3-black: #000000;
    --pge3-radius: 8px;
    --pge3-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-size: 62.5%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--pge3-bg);
    color: var(--pge3-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
}

a { color: var(--pge3-highlight); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========== HEADER ========== */
.pge3-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, var(--pge3-primary), #5a0000);
    z-index: 1000;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.pge3-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pge3-logo-wrap img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.pge3-logo-wrap span {
    color: var(--pge3-white);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pge3-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pge3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    border-radius: var(--pge3-radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    min-height: 36px;
}

.pge3-btn-register {
    background: var(--pge3-highlight);
    color: var(--pge3-bg);
}

.pge3-btn-register:hover {
    background: #1a9e93;
    transform: scale(1.04);
}

.pge3-btn-login {
    background: transparent;
    color: var(--pge3-white);
    border: 1.5px solid var(--pge3-highlight);
}

.pge3-btn-login:hover {
    background: var(--pge3-highlight);
    color: var(--pge3-bg);
}

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

/* ========== MOBILE MENU ========== */
.pge3-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
}

.pge3-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    max-width: 300px;
    height: 100%;
    background: var(--pge3-bg-light);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.pge3-mobile-menu h3 {
    color: var(--pge3-highlight);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(211,211,211,0.2);
}

.pge3-mobile-menu ul {
    list-style: none;
}

.pge3-mobile-menu ul li {
    margin-bottom: 0.5rem;
}

.pge3-mobile-menu ul li a {
    color: var(--pge3-text);
    font-size: 1.4rem;
    padding: 0.8rem 1rem;
    display: block;
    border-radius: var(--pge3-radius);
    transition: background 0.2s;
}

.pge3-mobile-menu ul li a:hover {
    background: rgba(32,178,170,0.15);
    color: var(--pge3-highlight);
}

/* ========== CAROUSEL ========== */
.pge3-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 52px;
    aspect-ratio: 16/8;
}

.pge3-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.pge3-slide {
    display: none;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

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

.pge3-slide-active {
    display: block;
}

.pge3-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.pge3-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s;
}

.pge3-dot-active {
    background: var(--pge3-highlight);
}

/* ========== CONTAINER ========== */
.pge3-container {
    width: 100%;
    padding: 0 1rem;
    max-width: 430px;
    margin: 0 auto;
}

.pge3-wrapper {
    padding: 1.5rem 1rem;
}

/* ========== SECTION HEADINGS ========== */
.pge3-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pge3-white);
    margin-bottom: 1.2rem;
    padding-left: 1rem;
    border-left: 3px solid var(--pge3-highlight);
}

.pge3-section-title span {
    color: var(--pge3-highlight);
}

/* ========== GAME GRID ========== */
.pge3-game-section {
    margin-bottom: 2rem;
}

.pge3-game-section h2 {
    font-size: 1.5rem;
    color: var(--pge3-warm);
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.pge3-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.pge3-game-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.pge3-game-card:hover {
    transform: scale(1.05);
}

.pge3-game-card img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--pge3-radius);
    object-fit: cover;
    box-shadow: var(--pge3-shadow);
}

.pge3-game-card p {
    font-size: 1.1rem;
    color: var(--pge3-text);
    margin-top: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== CONTENT BLOCKS ========== */
.pge3-content-block {
    background: var(--pge3-bg-light);
    border-radius: var(--pge3-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--pge3-shadow);
}

.pge3-content-block h2 {
    font-size: 1.6rem;
    color: var(--pge3-highlight);
    margin-bottom: 1rem;
}

.pge3-content-block h3 {
    font-size: 1.4rem;
    color: var(--pge3-warm);
    margin: 1rem 0 0.5rem;
}

.pge3-content-block p {
    color: var(--pge3-text);
    line-height: 1.8rem;
    margin-bottom: 0.8rem;
}

.pge3-content-block ul {
    list-style: none;
    padding-left: 0;
}

.pge3-content-block ul li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--pge3-text);
    line-height: 1.7rem;
}

.pge3-content-block ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--pge3-highlight);
    font-weight: 700;
}

.pge3-promo-text {
    color: var(--pge3-highlight);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.pge3-promo-text:hover {
    color: var(--pge3-warm);
    text-decoration: underline;
}

/* ========== CTA BUTTON ========== */
.pge3-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pge3-primary), #c0392b);
    color: var(--pge3-white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(139,0,0,0.4);
    transition: all 0.3s ease;
    text-align: center;
}

.pge3-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139,0,0,0.5);
}

/* ========== FOOTER ========== */
.pge3-footer {
    background: #0d1520;
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.pge3-footer-brand {
    color: var(--pge3-text);
    font-size: 1.2rem;
    line-height: 1.8rem;
    margin-bottom: 1.5rem;
}

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

.pge3-footer-links a {
    background: var(--pge3-bg-light);
    color: var(--pge3-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.pge3-footer-links a:hover {
    background: var(--pge3-highlight);
    color: var(--pge3-bg);
}

.pge3-footer-copy {
    color: rgba(211,211,211,0.5);
    font-size: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(211,211,211,0.1);
}

/* ========== BOTTOM NAV ========== */
.pge3-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(135deg, #0d1520, var(--pge3-bg));
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(32,178,170,0.3);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}

.pge3-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.25s ease;
    color: rgba(211,211,211,0.6);
    gap: 2px;
}

.pge3-bottom-nav-item:hover,
.pge3-bottom-nav-item.pge3-nav-active {
    color: var(--pge3-highlight);
}

.pge3-bottom-nav-item .pge3-nav-icon {
    font-size: 22px;
    line-height: 1;
}

.pge3-bottom-nav-item .pge3-nav-label {
    font-size: 1rem;
    white-space: nowrap;
}

.pge3-bottom-nav-item:hover .pge3-nav-icon {
    transform: scale(1.15);
}

/* ========== HOMEPAGE SPECIFIC ========== */
.pge3-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--pge3-white);
    text-align: center;
    padding: 1.5rem 1rem;
    line-height: 2.5rem;
}

.pge3-hero-title span {
    color: var(--pge3-highlight);
}

.pge3-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pge3-feature-card {
    background: var(--pge3-bg-light);
    border-radius: var(--pge3-radius);
    padding: 1.2rem;
    text-align: center;
    box-shadow: var(--pge3-shadow);
    border: 1px solid rgba(32,178,170,0.15);
}

.pge3-feature-card .material-icons,
.pge3-feature-card .fas,
.pge3-feature-card .bi {
    font-size: 28px;
    color: var(--pge3-highlight);
    margin-bottom: 0.5rem;
}

.pge3-feature-card h3 {
    font-size: 1.3rem;
    color: var(--pge3-white);
    margin-bottom: 0.3rem;
}

.pge3-feature-card p {
    font-size: 1.1rem;
    color: var(--pge3-text);
    line-height: 1.5rem;
}

.pge3-testimonial {
    background: var(--pge3-bg-light);
    border-radius: var(--pge3-radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--pge3-warm);
}

.pge3-testimonial p {
    font-size: 1.2rem;
    color: var(--pge3-text);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.pge3-testimonial span {
    font-size: 1.1rem;
    color: var(--pge3-warm);
    font-weight: 600;
}

.pge3-winner-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--pge3-bg-light);
    padding: 1rem;
    border-radius: var(--pge3-radius);
    margin-bottom: 0.8rem;
}

.pge3-winner-card img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.pge3-winner-card div {
    flex: 1;
}

.pge3-winner-card .pge3-winner-name {
    font-size: 1.2rem;
    color: var(--pge3-white);
    font-weight: 600;
}

.pge3-winner-card .pge3-winner-amount {
    font-size: 1.3rem;
    color: var(--pge3-highlight);
    font-weight: 700;
}

.pge3-winner-card .pge3-winner-game {
    font-size: 1rem;
    color: rgba(211,211,211,0.6);
}

.pge3-payment-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.pge3-payment-row span {
    background: var(--pge3-bg-light);
    color: var(--pge3-highlight);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    border: 1px solid rgba(32,178,170,0.2);
}

.pge3-download-box {
    background: linear-gradient(135deg, var(--pge3-primary), #5a0000);
    border-radius: var(--pge3-radius);
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.pge3-download-box h3 {
    color: var(--pge3-white);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.pge3-download-box p {
    color: var(--pge3-accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 769px) {
    .pge3-bottom-nav { display: none; }
    .pge3-menu-btn { display: none; }
    body { max-width: 430px; }
}

@media (max-width: 768px) {
    .pge3-main-content { padding-bottom: 80px; }
}
