/**
 * Fairplay Casino - Layout Stylesheet
 * Website: fairplaycasino.club
 * Prefix: pg9d-
 * Color Palette: #B0E0E6 | #0E1621 | #FA8072 | #FFCCCB
 */

/* CSS Variables */
:root {
    --pg9d-primary: #FA8072;
    --pg9d-secondary: #B0E0E6;
    --pg9d-bg-dark: #0E1621;
    --pg9d-bg-light: #FFCCCB;
    --pg9d-text-light: #B0E0E6;
    --pg9d-text-dark: #0E1621;
    --pg9d-accent: #FA8072;
    --pg9d-gradient: linear-gradient(135deg, #0E1621 0%, #1a2a3a 100%);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--pg9d-gradient);
    color: var(--pg9d-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.pg9d-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
    width: 100%;
}

.pg9d-wrapper {
    padding-top: 6rem;
    padding-bottom: 8rem;
}

/* Header */
.pg9d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #0E1621 0%, rgba(14, 22, 33, 0.95) 100%);
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.pg9d-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.pg9d-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.pg9d-logo img {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.4rem;
}

.pg9d-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pg9d-primary);
    letter-spacing: 0.5px;
}

.pg9d-header-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.pg9d-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 0.4rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.pg9d-btn-primary {
    background: var(--pg9d-primary);
    color: #fff;
}

.pg9d-btn-primary:hover {
    background: #e66b5c;
    transform: scale(1.05);
}

.pg9d-btn-outline {
    background: transparent;
    color: var(--pg9d-secondary);
    border: 1px solid var(--pg9d-secondary);
}

.pg9d-btn-outline:hover {
    background: var(--pg9d-secondary);
    color: var(--pg9d-bg-dark);
}

.pg9d-menu-toggle {
    background: transparent;
    border: none;
    color: var(--pg9d-secondary);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.pg9d-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: var(--pg9d-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.site5de-menu-active {
    right: 0;
}

.pg9d-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(176, 224, 230, 0.2);
}

.pg9d-menu-close {
    background: transparent;
    border: none;
    color: var(--pg9d-secondary);
    font-size: 1.6rem;
    cursor: pointer;
}

.pg9d-nav-list {
    list-style: none;
}

.pg9d-nav-item {
    margin-bottom: 0.8rem;
}

.pg9d-nav-link {
    display: block;
    padding: 1rem;
    color: var(--pg9d-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
}

.pg9d-nav-link:hover {
    background: rgba(250, 128, 114, 0.15);
    color: var(--pg9d-primary);
}

/* Overlay */
.pg9d-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;
}

.site5de-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Carousel */
.pg9d-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.8rem;
    margin: 1rem 0;
}

.pg9d-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.site5de-slide {
    min-width: 100%;
    display: none;
}

.site5de-slide-active {
    display: block;
}

.pg9d-carousel-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 0.8rem;
    cursor: pointer;
}

.pg9d-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 0;
}

.pg9d-carousel-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(176, 224, 230, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.site5de-dot-active {
    background: var(--pg9d-primary);
}

/* Section Styles */
.pg9d-section {
    padding: 1.5rem 0;
}

.pg9d-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pg9d-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pg9d-primary);
}

.pg9d-section-content {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--pg9d-text-light);
}

/* Game Grid */
.pg9d-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 1rem 0;
}

.pg9d-game-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: rgba(176, 224, 230, 0.08);
    border-radius: 0.6rem;
    padding: 0.5rem;
}

.pg9d-game-card:hover {
    transform: scale(1.05);
}

.pg9d-game-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.4rem;
    margin-bottom: 0.3rem;
}

.pg9d-game-name {
    font-size: 0.9rem;
    color: var(--pg9d-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.pg9d-category-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.5rem 0 1rem;
}

.pg9d-category-icon {
    font-size: 1.4rem;
    color: var(--pg9d-primary);
}

.pg9d-category-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pg9d-secondary);
}

/* Features List */
.pg9d-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.pg9d-feature-item {
    background: rgba(176, 224, 230, 0.1);
    padding: 1rem;
    border-radius: 0.6rem;
    border-left: 3px solid var(--pg9d-primary);
}

.pg9d-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pg9d-primary);
    margin-bottom: 0.4rem;
}

.pg9d-feature-text {
    font-size: 1rem;
    color: var(--pg9d-text-light);
}

/* FAQ Section */
.pg9d-faq-item {
    background: rgba(14, 22, 33, 0.6);
    border: 1px solid rgba(176, 224, 230, 0.2);
    border-radius: 0.6rem;
    padding: 1rem;
    margin-bottom: 0.8rem;
}

.pg9d-faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pg9d-primary);
    margin-bottom: 0.5rem;
}

.pg9d-faq-answer {
    font-size: 1.1rem;
    color: var(--pg9d-text-light);
    line-height: 1.6;
}

/* Promo Link */
.pg9d-promo-link {
    color: var(--pg9d-primary);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pg9d-promo-link:hover {
    color: #e66b5c;
    text-decoration: underline;
}

/* Footer */
.pg9d-footer {
    background: linear-gradient(180deg, rgba(14, 22, 33, 0.95) 0%, #0E1621 100%);
    padding: 2rem 1rem;
    border-top: 1px solid rgba(176, 224, 230, 0.1);
}

.pg9d-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pg9d-footer-link {
    color: var(--pg9d-text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.pg9d-footer-link:hover {
    color: var(--pg9d-primary);
}

.pg9d-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 1.5rem 0;
}

.pg9d-partner-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pg9d-partner-logo:hover {
    opacity: 1;
}

.pg9d-copyright {
    text-align: center;
    font-size: 1rem;
    color: rgba(176, 224, 230, 0.6);
    margin-top: 1rem;
}

/* Bottom Navigation */
.pg9d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(14, 22, 33, 0.98) 0%, #0E1621 100%);
    border-top: 1px solid rgba(250, 128, 114, 0.3);
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

.pg9d-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 50px;
    background: transparent;
    border: none;
    color: var(--pg9d-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.6rem;
}

.pg9d-nav-btn:hover,
.pg9d-nav-btn-active {
    color: var(--pg9d-primary);
    background: rgba(250, 128, 114, 0.1);
    transform: scale(1.1);
}

.pg9d-nav-btn i,
.pg9d-nav-btn .material-icons-outlined {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.pg9d-nav-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Desktop Hide Bottom Nav */
@media (min-width: 769px) {
    .pg9d-bottom-nav {
        display: none;
    }

    .pg9d-wrapper {
        padding-bottom: 2rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .pg9d-wrapper {
        padding-bottom: 80px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--pg9d-primary);
    margin-bottom: 1rem;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    line-height: 1.7;
}

/* Utility Classes */
.pg9d-text-center { text-align: center; }
.pg9d-text-primary { color: var(--pg9d-primary); }
.pg9d-text-secondary { color: var(--pg9d-secondary); }
.pg9d-mb-1 { margin-bottom: 1rem; }
.pg9d-mb-2 { margin-bottom: 2rem; }
.pg9d-mt-1 { margin-top: 1rem; }
.pg9d-mt-2 { margin-top: 2rem; }

/* Animation */
@keyframes pg9d-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pg9d-pulse {
    animation: pg9d-pulse 2s infinite;
}

/* RTP Section */
.pg9d-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.pg9d-rtp-item {
    background: rgba(176, 224, 230, 0.08);
    padding: 0.8rem;
    border-radius: 0.5rem;
    text-align: center;
}

.pg9d-rtp-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pg9d-primary);
}

.pg9d-rtp-label {
    font-size: 0.9rem;
    color: var(--pg9d-text-light);
}

/* Security Section */
.pg9d-security-list {
    list-style: none;
    padding: 0;
}

.pg9d-security-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(176, 224, 230, 0.1);
}

.pg9d-security-item i {
    color: var(--pg9d-primary);
    font-size: 1.4rem;
}

/* Achievements */
.pg9d-achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(250, 128, 114, 0.1);
    padding: 1rem;
    border-radius: 0.6rem;
    margin-bottom: 0.8rem;
}

.pg9d-achievement-icon {
    font-size: 2rem;
    color: var(--pg9d-primary);
}

.pg9d-achievement-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.pg9d-achievement-text p {
    font-size: 1rem;
    margin: 0;
}

/* Tricks Section */
.pg9d-trick {
    background: rgba(14, 22, 33, 0.6);
    border: 1px solid rgba(250, 128, 114, 0.2);
    padding: 1rem;
    border-radius: 0.6rem;
    margin-bottom: 0.8rem;
}

.pg9d-trick-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--pg9d-secondary);
    margin-bottom: 0.5rem;
}

.pg9d-trick-content {
    font-size: 1rem;
    color: var(--pg9d-text-light);
}
