/* SC777 Casino - Core Stylesheet */
/* All classes use pgad- prefix for namespace isolation */
/* Color palette: #141414 (bg) | #CED4DA (text) | #FF1493 (accent) | #DB7093 (secondary) */

:root {
    --pgad-primary: #FF1493;
    --pgad-secondary: #DB7093;
    --pgad-bg: #141414;
    --pgad-bg-light: #1a1a2e;
    --pgad-bg-card: #1e1e30;
    --pgad-text: #CED4DA;
    --pgad-text-light: #e9ecef;
    --pgad-text-muted: #868e96;
    --pgad-border: #2a2a3e;
    --pgad-accent-glow: rgba(255, 20, 147, 0.3);
    --pgad-gradient: linear-gradient(135deg, #FF1493, #DB7093);
    --pgad-gradient-dark: linear-gradient(135deg, #1a1a2e, #141414);
    --pgad-radius: 1.2rem;
    --pgad-radius-sm: 0.8rem;
    --pgad-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    --pgad-transition: all 0.3s ease;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--pgad-bg);
    color: var(--pgad-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--pgad-primary);
    text-decoration: none;
    transition: var(--pgad-transition);
}

a:hover {
    color: var(--pgad-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== HEADER ========== */
.pgad-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 5.6rem;
    background: var(--pgad-bg);
    border-bottom: 1px solid var(--pgad-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(20, 20, 20, 0.95);
}

.pgad-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.pgad-logo-wrap img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.4rem;
}

.pgad-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--pgad-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.pgad-btn-register {
    background: var(--pgad-gradient);
    color: #fff;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--pgad-transition);
    min-height: 3.6rem;
    min-width: 7rem;
}

.pgad-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px var(--pgad-accent-glow);
}

.pgad-btn-login {
    background: transparent;
    color: var(--pgad-primary);
    border: 1.5px solid var(--pgad-primary);
    padding: 0.6rem 1.4rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pgad-transition);
    min-height: 3.6rem;
    min-width: 7rem;
}

.pgad-btn-login:hover {
    background: rgba(255, 20, 147, 0.1);
}

.pgad-menu-toggle {
    background: none;
    border: none;
    color: var(--pgad-text);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 4.4rem;
    min-height: 4.4rem;
}

/* ========== MOBILE MENU ========== */
.pgad-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pgad-overlay-active {
    opacity: 1;
    pointer-events: auto;
}

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

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

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

.pgad-menu-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgad-primary);
}

.pgad-menu-close {
    background: none;
    border: none;
    color: var(--pgad-text);
    font-size: 2rem;
    cursor: pointer;
    min-width: 4.4rem;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.pgad-menu-links li {
    border-bottom: 1px solid var(--pgad-border);
}

.pgad-menu-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 0.5rem;
    color: var(--pgad-text);
    font-size: 1.4rem;
    transition: var(--pgad-transition);
}

.pgad-menu-links a:hover {
    color: var(--pgad-primary);
    padding-left: 1rem;
}

.pgad-menu-links .pgad-menu-icon {
    font-size: 1.8rem;
    width: 2.4rem;
    text-align: center;
}

/* ========== MAIN CONTENT ========== */
.pgad-main {
    padding-top: 5.6rem;
    min-height: 100vh;
}

/* ========== CAROUSEL ========== */
.pgad-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--pgad-radius) var(--pgad-radius);
}

.pgad-slide {
    display: none;
    width: 100%;
    cursor: pointer;
    position: relative;
}

.pgad-slide img {
    width: 100%;
    height: auto;
    min-height: 180px;
    object-fit: cover;
}

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

.pgad-slide-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 5;
}

.pgad-slide-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--pgad-transition);
}

.pgad-dot-active {
    background: var(--pgad-primary);
    width: 2rem;
    border-radius: 0.4rem;
}

/* ========== SECTION STYLES ========== */
.pgad-section {
    padding: 2rem 1.2rem;
}

.pgad-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pgad-text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pgad-section-title::before {
    content: '';
    width: 0.4rem;
    height: 2rem;
    background: var(--pgad-gradient);
    border-radius: 0.2rem;
}

/* ========== GAME GRID ========== */
.pgad-game-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pgad-primary);
    margin: 1.5rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--pgad-secondary);
}

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

.pgad-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--pgad-transition);
    border-radius: var(--pgad-radius-sm);
    padding: 0.6rem;
    background: var(--pgad-bg-card);
}

.pgad-game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--pgad-accent-glow);
}

.pgad-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--pgad-radius-sm);
    margin-bottom: 0.4rem;
}

.pgad-game-name {
    font-size: 1rem;
    color: var(--pgad-text);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== CONTENT CARDS ========== */
.pgad-card {
    background: var(--pgad-bg-card);
    border-radius: var(--pgad-radius);
    padding: 1.6rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--pgad-border);
}

.pgad-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pgad-text-light);
    margin-bottom: 1rem;
}

.pgad-card p {
    color: var(--pgad-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* ========== PROMO LINK STYLES ========== */
.pgad-promo-link {
    color: var(--pgad-primary);
    font-weight: 700;
    cursor: pointer;
    transition: var(--pgad-transition);
    text-decoration: underline;
}

.pgad-promo-link:hover {
    color: var(--pgad-secondary);
    text-shadow: 0 0 8px var(--pgad-accent-glow);
}

.pgad-promo-btn {
    display: inline-block;
    background: var(--pgad-gradient);
    color: #fff;
    padding: 1rem 2.4rem;
    border-radius: 2.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--pgad-transition);
    text-align: center;
    min-height: 4.4rem;
}

.pgad-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--pgad-accent-glow);
}

/* ========== FEATURES GRID ========== */
.pgad-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pgad-feature-item {
    background: var(--pgad-bg-card);
    border-radius: var(--pgad-radius-sm);
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--pgad-border);
    transition: var(--pgad-transition);
}

.pgad-feature-item:hover {
    border-color: var(--pgad-primary);
}

.pgad-feature-icon {
    font-size: 2.4rem;
    color: var(--pgad-primary);
    margin-bottom: 0.6rem;
}

.pgad-feature-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pgad-text-light);
}

.pgad-feature-desc {
    font-size: 1rem;
    color: var(--pgad-text-muted);
    margin-top: 0.4rem;
}

/* ========== TESTIMONIALS ========== */
.pgad-testimonial {
    background: var(--pgad-bg-card);
    border-radius: var(--pgad-radius);
    padding: 1.4rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--pgad-primary);
}

.pgad-testimonial-text {
    font-style: italic;
    color: var(--pgad-text);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

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

/* ========== PAYMENT ICONS ========== */
.pgad-payment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    padding: 1rem 0;
}

.pgad-payment-item {
    background: var(--pgad-bg-card);
    border-radius: var(--pgad-radius-sm);
    padding: 0.8rem 1.2rem;
    font-size: 1.2rem;
    color: var(--pgad-text);
    border: 1px solid var(--pgad-border);
}

/* ========== WINNER LIST ========== */
.pgad-winner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--pgad-border);
}

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

.pgad-winner-amount {
    color: var(--pgad-primary);
    font-weight: 700;
    font-size: 1.3rem;
}

/* ========== FAQ ========== */
.pgad-faq-item {
    margin-bottom: 1rem;
}

.pgad-faq-q {
    font-weight: 700;
    color: var(--pgad-text-light);
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.pgad-faq-a {
    color: var(--pgad-text);
    padding-left: 1rem;
    border-left: 2px solid var(--pgad-secondary);
    line-height: 1.6;
}

/* ========== FOOTER ========== */
.pgad-footer {
    background: var(--pgad-bg-light);
    padding: 2rem 1.2rem;
    border-top: 1px solid var(--pgad-border);
}

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

.pgad-footer-brand p {
    font-size: 1.2rem;
    color: var(--pgad-text-muted);
    line-height: 1.6;
}

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

.pgad-footer-link {
    background: var(--pgad-bg-card);
    color: var(--pgad-text);
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    border: 1px solid var(--pgad-border);
    transition: var(--pgad-transition);
}

.pgad-footer-link:hover {
    border-color: var(--pgad-primary);
    color: var(--pgad-primary);
}

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

/* ========== BOTTOM NAV ========== */
.pgad-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 6rem;
    background: var(--pgad-bg-light);
    border-top: 1px solid var(--pgad-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.4rem;
}

.pgad-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--pgad-text-muted);
    cursor: pointer;
    min-width: 6rem;
    min-height: 5.6rem;
    transition: var(--pgad-transition);
    border-radius: 1rem;
    position: relative;
}

.pgad-bottom-btn:hover,
.pgad-bottom-btn:focus {
    color: var(--pgad-primary);
    background: rgba(255, 20, 147, 0.08);
}

.pgad-bottom-btn .pgad-bnav-icon {
    font-size: 2.4rem;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.pgad-bottom-btn .pgad-bnav-label {
    font-size: 1rem;
    font-weight: 500;
}

.pgad-bottom-btn.pgad-bnav-active {
    color: var(--pgad-primary);
}

.pgad-bottom-btn.pgad-bnav-active::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--pgad-gradient);
    border-radius: 1px;
}

.pgad-btn-touch {
    transform: scale(0.92);
}

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

@media (max-width: 768px) {
    .pgad-main {
        padding-bottom: 8rem;
    }
    .pgad-footer {
        padding-bottom: 8rem;
    }
}

/* ========== UTILITIES ========== */
.pgad-text-center { text-align: center; }
.pgad-text-primary { color: var(--pgad-primary); }
.pgad-text-bold { font-weight: 700; }
.pgad-mt-1 { margin-top: 1rem; }
.pgad-mt-2 { margin-top: 2rem; }
.pgad-mb-1 { margin-bottom: 1rem; }
.pgad-mb-2 { margin-bottom: 2rem; }
.pgad-py-1 { padding: 1rem 0; }
.pgad-py-2 { padding: 2rem 0; }
.pgad-hidden { display: none !important; }

/* ========== ANIMATIONS ========== */
@keyframes pgad-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pgad-animate-in {
    animation: pgad-fadeIn 0.4s ease forwards;
}

@keyframes pgad-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--pgad-accent-glow); }
    50% { box-shadow: 0 0 12px 4px var(--pgad-accent-glow); }
}

.pgad-pulse {
    animation: pgad-pulse 2s infinite;
}
