/**
 * LovePH Layout Stylesheet
 * Website: loveph.sbs
 * Prefix: pg0b-
 * All classes use dynamic prefix for namespace isolation
 * Colors: #2E4057 (dark), #BAE1FF (light), #66CDAA (accent)
 */

/* CSS Variables */
:root {
    --pg0b-primary: #2E4057;
    --pg0b-secondary: #BAE1FF;
    --pg0b-accent: #66CDAA;
    --pg0b-bg: #1a2634;
    --pg0b-bg-light: #243447;
    --pg0b-text: #BAE1FF;
    --pg0b-text-light: #ffffff;
    --pg0b-border: #3d5a80;
    --pg0b-gradient: linear-gradient(135deg, #2E4057 0%, #1a2634 100%);
}

/* Base Styles */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--pg0b-bg);
    color: var(--pg0b-text);
    line-height: 1.5;
    min-height: 100vh;
}

/* Container */
.pg0b-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pg0b-wrapper {
    width: 100%;
    overflow-x: hidden;
}

/* Header Styles */
.pg0b-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--pg0b-primary);
    padding: 1rem 1.5rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pg0b-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.pg0b-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.pg0b-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.pg0b-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg0b-text-light);
    background: linear-gradient(90deg, var(--pg0b-accent), var(--pg0b-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pg0b-header-btns {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.pg0b-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pg0b-btn-login {
    background: transparent;
    border: 2px solid var(--pg0b-accent);
    color: var(--pg0b-accent);
}

.pg0b-btn-login:hover {
    background: var(--pg0b-accent);
    color: var(--pg0b-primary);
}

.pg0b-btn-register {
    background: linear-gradient(135deg, var(--pg0b-accent), #4db890);
    color: var(--pg0b-primary);
}

.pg0b-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 205, 170, 0.4);
}

.pg0b-menu-btn {
    background: transparent;
    border: none;
    color: var(--pg0b-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

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

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

.pg0b-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;
}

.pg0b-overlay-active {
    opacity: 1;
    visibility: visible;
}

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

.pg0b-menu-title {
    font-size: 1.8rem;
    color: var(--pg0b-text-light);
    font-weight: 600;
}

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

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

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

.pg0b-menu-links a {
    display: block;
    padding: 1rem;
    color: var(--pg0b-text);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

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

/* Main Content */
.pg0b-main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

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

/* Carousel Styles */
.pg0b-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

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

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

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

.pg0b-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(46, 64, 87, 0.8);
    border: none;
    color: var(--pg0b-text-light);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.pg0b-carousel-prev {
    left: 10px;
}

.pg0b-carousel-next {
    right: 10px;
}

.pg0b-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

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

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

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

.pg0b-section-title {
    font-size: 2rem;
    color: var(--pg0b-text-light);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.pg0b-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--pg0b-accent);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Game Grid */
.pg0b-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 0 0.5rem;
}

.pg0b-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pg0b-game-item:hover {
    transform: translateY(-5px);
}

.pg0b-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--pg0b-border);
    transition: border-color 0.3s ease;
}

.pg0b-game-item:hover .pg0b-game-img {
    border-color: var(--pg0b-accent);
}

.pg0b-game-name {
    font-size: 1rem;
    color: var(--pg0b-text);
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* Category Title */
.pg0b-category-title {
    font-size: 1.6rem;
    color: var(--pg0b-accent);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--pg0b-accent);
}

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

.pg0b-card-title {
    font-size: 1.6rem;
    color: var(--pg0b-accent);
    margin-bottom: 1rem;
}

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

/* Promo Link Styles */
.pg0b-promo-link {
    color: var(--pg0b-accent);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.pg0b-promo-link:hover {
    color: var(--pg0b-secondary);
}

.pg0b-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--pg0b-accent), #4db890);
    color: var(--pg0b-primary);
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.pg0b-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 205, 170, 0.4);
}

/* Footer Styles */
.pg0b-footer {
    background: var(--pg0b-primary);
    padding: 2rem 1.5rem 1rem;
    margin-top: 2rem;
}

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

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

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

.pg0b-footer-link {
    color: var(--pg0b-text);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: var(--pg0b-bg-light);
    transition: all 0.3s ease;
}

.pg0b-footer-link:hover {
    background: var(--pg0b-accent);
    color: var(--pg0b-primary);
}

.pg0b-footer-promo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.pg0b-footer-promo .pg0b-btn {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}

.pg0b-footer-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--pg0b-text);
    opacity: 0.7;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pg0b-border);
}

/* Bottom Navigation */
.pg0b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--pg0b-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--pg0b-border);
}

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

.pg0b-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--pg0b-text);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg0b-nav-item:hover,
.pg0b-nav-item.pg0b-nav-active {
    color: var(--pg0b-accent);
    transform: scale(1.1);
}

.pg0b-nav-item i,
.pg0b-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 2px;
}

.pg0b-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

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

.pg0b-list li {
    padding: 1rem;
    border-bottom: 1px solid var(--pg0b-border);
    font-size: 1.3rem;
}

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

/* Info Box */
.pg0b-info-box {
    background: var(--pg0b-bg-light);
    border-left: 4px solid var(--pg0b-accent);
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
}

.pg0b-info-box p {
    font-size: 1.3rem;
    color: var(--pg0b-text);
}

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

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

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

/* RTP Display */
.pg0b-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pg0b-rtp-item {
    background: var(--pg0b-bg-light);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.pg0b-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg0b-accent);
}

.pg0b-rtp-label {
    font-size: 1.1rem;
    color: var(--pg0b-text);
}

/* Winner Display */
.pg0b-winner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--pg0b-bg-light);
    border-radius: 8px;
    margin-bottom: 0.8rem;
}

.pg0b-winner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pg0b-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--pg0b-primary);
}

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

.pg0b-winner-name {
    font-size: 1.3rem;
    color: var(--pg0b-text-light);
    font-weight: 600;
}

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

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

.pg0b-payment-item {
    background: var(--pg0b-bg-light);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1.2rem;
    color: var(--pg0b-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Utility Classes */
.pg0b-text-center {
    text-align: center;
}

.pg0b-mt-1 {
    margin-top: 1rem;
}

.pg0b-mt-2 {
    margin-top: 2rem;
}

.pg0b-mb-1 {
    margin-bottom: 1rem;
}

.pg0b-mb-2 {
    margin-bottom: 2rem;
}

.pg0b-hidden-desktop {
    display: block;
}

@media (min-width: 769px) {
    .pg0b-hidden-desktop {
        display: none;
    }
}

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

    .pg0b-btn {
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }
}
