/**
 * TG7771 Website CSS Styles
 * All classes use pg10- prefix for namespace isolation
 * Color Palette: #FFEFD5 | #FFE4B5 | #0D1117 | #808080 | #D2691E
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --pg10-primary: #D2691E;
    --pg10-secondary: #FFE4B5;
    --pg10-bg-dark: #0D1117;
    --pg10-bg-light: #FFEFD5;
    --pg10-text-light: #FFEFD5;
    --pg10-text-muted: #808080;
    --pg10-accent: #D2691E;
    --pg10-gradient: linear-gradient(135deg, #D2691E 0%, #8B4513 100%);
}

/* Reset and 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-color: var(--pg10-bg-dark);
    color: var(--pg10-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
}

/* Container */
.pg10-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pg10-wrapper {
    padding: 1rem;
}

/* Header */
.pg10-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.98) 0%, rgba(13, 17, 23, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(210, 105, 30, 0.3);
    transition: all 0.3s ease;
}

.pg10-header-scrolled {
    background: rgba(13, 17, 23, 0.99);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.pg10-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.pg10-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.pg10-logo img {
    width: 28px;
    height: 28px;
}

.pg10-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pg10-primary);
    letter-spacing: 0.5px;
}

.pg10-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.pg10-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    min-height: 36px;
}

.pg10-btn-primary {
    background: var(--pg10-gradient);
    color: #fff;
}

.pg10-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.4);
}

.pg10-btn-outline {
    background: transparent;
    color: var(--pg10-primary);
    border: 2px solid var(--pg10-primary);
}

.pg10-btn-outline:hover {
    background: var(--pg10-primary);
    color: #fff;
}

.pg10-menu-toggle {
    background: none;
    border: none;
    color: var(--pg10-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.pg10-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pg10-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 1px solid rgba(210, 105, 30, 0.3);
    overflow-y: auto;
}

.pg10-menu-active {
    right: 0;
}

.pg10-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.pg10-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pg10-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(210, 105, 30, 0.3);
}

.pg10-menu-close {
    background: none;
    border: none;
    color: var(--pg10-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.pg10-nav-list {
    list-style: none;
}

.pg10-nav-item {
    margin-bottom: 0.5rem;
}

.pg10-nav-link {
    display: block;
    padding: 1rem;
    color: var(--pg10-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pg10-nav-link:hover {
    background: rgba(210, 105, 30, 0.2);
    color: var(--pg10-primary);
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.pg10-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.pg10-slides {
    position: relative;
    height: 180px;
}

.pg10-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.pg10-slide-active {
    opacity: 1;
}

.pg10-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Section Titles */
.pg10-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg10-primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pg10-primary);
}

.pg10-h1-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg10-text-light);
    margin: 1.5rem 0;
    line-height: 1.4;
}

/* Game Grid */
.pg10-game-section {
    margin: 1.5rem 0;
}

.pg10-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pg10-secondary);
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pg10-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.pg10-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pg10-game-item:hover {
    transform: scale(1.05);
}

.pg10-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(210, 105, 30, 0.3);
    margin-bottom: 0.4rem;
}

.pg10-game-name {
    font-size: 1rem;
    color: var(--pg10-text-light);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70px;
}

/* Content Sections */
.pg10-content-section {
    background: rgba(255, 224, 181, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(210, 105, 30, 0.2);
}

.pg10-content-section h2 {
    font-size: 1.6rem;
    color: var(--pg10-primary);
    margin-bottom: 1rem;
}

.pg10-content-section p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--pg10-text-light);
    margin-bottom: 1rem;
}

.pg10-content-section ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.pg10-content-section li {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--pg10-text-light);
    margin-bottom: 0.5rem;
}

/* Promo Link */
.pg10-promo-link {
    color: var(--pg10-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pg10-promo-link:hover {
    color: var(--pg10-secondary);
    text-decoration: underline;
}

/* Footer */
.pg10-footer {
    background: rgba(13, 17, 23, 0.95);
    border-top: 1px solid rgba(210, 105, 30, 0.3);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.pg10-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pg10-footer-link {
    color: var(--pg10-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.pg10-footer-link:hover {
    color: var(--pg10-primary);
}

.pg10-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pg10-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.pg10-partner-logo:hover {
    opacity: 1;
}

.pg10-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--pg10-text-muted);
    margin-top: 1rem;
}

/* Bottom Navigation */
.pg10-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(13, 17, 23, 0.98) 0%, rgba(13, 17, 23, 1) 100%);
    border-top: 1px solid rgba(210, 105, 30, 0.4);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

@media (min-width: 769px) {
    .pg10-bottom-nav {
        display: none;
    }
}

.pg10-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--pg10-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pg10-nav-btn:hover,
.pg10-nav-btn.active {
    color: var(--pg10-primary);
    transform: scale(1.1);
}

.pg10-nav-btn i,
.pg10-nav-btn .material-icons-outlined {
    font-size: 24px;
    margin-bottom: 2px;
}

.pg10-nav-btn span {
    font-size: 10px;
    font-weight: 500;
}

/* Cards */
.pg10-card {
    background: rgba(255, 224, 181, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(210, 105, 30, 0.2);
    margin-bottom: 1rem;
}

.pg10-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--pg10-primary);
    margin-bottom: 0.8rem;
}

/* RTP Table */
.pg10-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
}

.pg10-rtp-table th,
.pg10-rtp-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(210, 105, 30, 0.2);
}

.pg10-rtp-table th {
    color: var(--pg10-primary);
    font-weight: 600;
}

.pg10-rtp-table td {
    color: var(--pg10-text-light);
}

/* Utility Classes */
.pg10-text-center {
    text-align: center;
}

.pg10-mt-2 {
    margin-top: 2rem;
}

.pg10-mb-2 {
    margin-bottom: 2rem;
}

.pg10-hidden {
    display: none;
}

/* Animations */
@keyframes pg10-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pg10-animate-pulse {
    animation: pg10-pulse 2s infinite;
}

/* FAQ Accordion */
.pg10-faq-item {
    border-bottom: 1px solid rgba(210, 105, 30, 0.2);
    padding: 1rem 0;
}

.pg10-faq-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--pg10-secondary);
    margin-bottom: 0.5rem;
}

.pg10-faq-answer {
    font-size: 1.2rem;
    color: var(--pg10-text-light);
    line-height: 1.6;
}

/* Feature List */
.pg10-feature-list {
    display: grid;
    gap: 1rem;
}

.pg10-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pg10-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--pg10-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pg10-feature-icon i {
    font-size: 20px;
    color: #fff;
}

.pg10-feature-text h3 {
    font-size: 1.3rem;
    color: var(--pg10-primary);
    margin-bottom: 0.3rem;
}

.pg10-feature-text p {
    font-size: 1.2rem;
    color: var(--pg10-text-muted);
    line-height: 1.5;
}

/* Promo Banner */
.pg10-promo-banner {
    background: var(--pg10-gradient);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
}

.pg10-promo-banner h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.pg10-promo-banner p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .pg10-container {
        max-width: 800px;
    }

    .pg10-header-inner {
        max-width: 800px;
    }

    .pg10-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .pg10-slides {
        height: 280px;
    }
}
