/**
 * kkkph Layout Stylesheet
 * Website: kkkph.sbs
 * Version: 1.0.0
 * All classes use pg81- prefix for namespace isolation
 */

/* CSS Variables */
:root {
    --pg81-primary: #FF91A4;
    --pg81-secondary: #FFDFBA;
    --pg81-bg-dark: #2E4057;
    --pg81-bg-light: #C0C0C0;
    --pg81-text-light: #FFDFBA;
    --pg81-text-dark: #2E4057;
    --pg81-accent: #FF91A4;
    --pg81-gradient: linear-gradient(135deg, #2E4057 0%, #1a2a3a 100%);
    --pg81-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --pg81-radius: 12px;
    --pg81-radius-sm: 8px;
}

/* 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;
    font-size: 1.6rem;
    line-height: 1.5;
    background: var(--pg81-bg-dark);
    color: var(--pg81-text-light);
    min-height: 100vh;
}

a {
    color: var(--pg81-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--pg81-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.pg81-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pg81-wrapper {
    width: 100%;
    padding: 1rem;
}

/* Header */
.pg81-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--pg81-gradient);
    padding: 1rem;
    z-index: 1000;
    box-shadow: var(--pg81-shadow);
}

.pg81-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.pg81-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg81-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.pg81-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pg81-primary);
}

.pg81-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.pg81-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: var(--pg81-radius-sm);
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.pg81-btn-primary {
    background: var(--pg81-primary);
    color: var(--pg81-text-dark);
}

.pg81-btn-primary:hover {
    background: #ffb3c1;
    transform: scale(1.05);
}

.pg81-btn-secondary {
    background: transparent;
    color: var(--pg81-text-light);
    border: 2px solid var(--pg81-primary);
}

.pg81-btn-secondary:hover {
    background: var(--pg81-primary);
    color: var(--pg81-text-dark);
}

.pg81-menu-toggle {
    background: transparent;
    border: none;
    color: var(--pg81-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.pg81-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--pg81-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.web181-menu-active {
    right: 0;
}

.pg81-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;
}

.web181-overlay-active {
    opacity: 1;
    visibility: visible;
}

.pg81-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--pg81-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.pg81-menu-nav {
    margin-top: 4rem;
    list-style: none;
}

.pg81-menu-nav li {
    margin-bottom: 1.5rem;
}

.pg81-menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--pg81-text-light);
    font-size: 1.6rem;
    padding: 1rem;
    border-radius: var(--pg81-radius-sm);
    transition: all 0.3s ease;
}

.pg81-menu-nav a:hover {
    background: rgba(255, 145, 164, 0.2);
    color: var(--pg81-primary);
}

.pg81-menu-nav i {
    font-size: 2rem;
    width: 2.4rem;
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel/Slider */
.pg81-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--pg81-radius);
    margin-bottom: 2rem;
}

.pg81-slide {
    display: none;
    cursor: pointer;
}

.pg81-slide:first-child {
    display: block;
}

.pg81-slide img {
    width: 100%;
    height: auto;
    border-radius: var(--pg81-radius);
}

/* Game Grid */
.pg81-section {
    padding: 2rem 0;
}

.pg81-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg81-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.pg81-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pg81-game-card {
    background: rgba(255, 223, 186, 0.1);
    border-radius: var(--pg81-radius-sm);
    padding: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg81-game-card:hover {
    background: rgba(255, 145, 164, 0.2);
    transform: translateY(-3px);
}

.pg81-game-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.pg81-game-name {
    font-size: 1.1rem;
    color: var(--pg81-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Feature Cards */
.pg81-feature-card {
    background: rgba(255, 223, 186, 0.1);
    border-radius: var(--pg81-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--pg81-primary);
}

.pg81-feature-card h3 {
    color: var(--pg81-primary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.pg81-feature-card p {
    color: var(--pg81-text-light);
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Content Blocks */
.pg81-content-block {
    background: rgba(46, 64, 87, 0.8);
    border-radius: var(--pg81-radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.pg81-content-block h2 {
    color: var(--pg81-primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pg81-content-block p {
    color: var(--pg81-text-light);
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.pg81-content-block ul {
    list-style: none;
    padding-left: 0;
}

.pg81-content-block li {
    color: var(--pg81-text-light);
    font-size: 1.4rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 145, 164, 0.2);
}

.pg81-content-block li:last-child {
    border-bottom: none;
}

.pg81-content-block li i {
    color: var(--pg81-primary);
    margin-right: 1rem;
}

/* Footer */
.pg81-footer {
    background: var(--pg81-gradient);
    padding: 2rem 1rem;
    margin-top: 2rem;
}

.pg81-footer-content {
    max-width: 430px;
    margin: 0 auto;
    text-align: center;
}

.pg81-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pg81-footer-links a {
    color: var(--pg81-text-light);
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--pg81-radius-sm);
}

.pg81-footer-links a:hover {
    background: var(--pg81-primary);
    color: var(--pg81-text-dark);
}

.pg81-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pg81-partners img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.pg81-partners img:hover {
    opacity: 1;
}

.pg81-copyright {
    color: var(--pg81-text-light);
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Bottom Navigation (Mobile) */
.pg81-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #2E4057 0%, #1a2a3a 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    z-index: 1000;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 145, 164, 0.3);
}

.pg81-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 0.5rem;
}

.pg81-nav-item:hover {
    background: rgba(255, 145, 164, 0.2);
}

.pg81-nav-item.active {
    background: rgba(255, 145, 164, 0.3);
}

.pg81-nav-item i {
    font-size: 24px;
    color: var(--pg81-text-light);
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.pg81-nav-item:hover i,
.pg81-nav-item.active i {
    color: var(--pg81-primary);
}

.pg81-nav-item span {
    font-size: 1rem;
    color: var(--pg81-text-light);
    transition: color 0.3s ease;
}

.pg81-nav-item:hover span,
.pg81-nav-item.active span {
    color: var(--pg81-primary);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pg81-bottom-nav {
        display: none;
    }
}

/* Desktop Navigation */
.pg81-desktop-nav {
    display: none;
}

@media (min-width: 769px) {
    .pg81-desktop-nav {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    .pg81-desktop-nav a {
        color: var(--pg81-text-light);
        font-size: 1.4rem;
        transition: color 0.3s ease;
    }

    .pg81-desktop-nav a:hover {
        color: var(--pg81-primary);
    }

    .pg81-menu-toggle {
        display: none;
    }
}

/* Promo Links */
.pg81-promo-link {
    display: inline-block;
    color: var(--pg81-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pg81-promo-link:hover {
    color: var(--pg81-secondary);
    text-decoration: underline;
}

/* RTP Display */
.pg81-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.pg81-rtp-item {
    background: rgba(255, 223, 186, 0.1);
    border-radius: var(--pg81-radius-sm);
    padding: 1rem;
    text-align: center;
}

.pg81-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg81-primary);
}

.pg81-rtp-label {
    font-size: 1.2rem;
    color: var(--pg81-text-light);
}

/* FAQ Accordion */
.pg81-faq-item {
    background: rgba(255, 223, 186, 0.1);
    border-radius: var(--pg81-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
}

.pg81-faq-question {
    padding: 1.2rem;
    font-weight: 600;
    color: var(--pg81-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg81-faq-answer {
    padding: 0 1.2rem 1.2rem;
    color: var(--pg81-text-light);
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Achievements */
.pg81-achievement {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 223, 186, 0.1);
    border-radius: var(--pg81-radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
}

.pg81-achievement-icon {
    width: 48px;
    height: 48px;
    background: var(--pg81-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.pg81-achievement-text h4 {
    color: var(--pg81-primary);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.pg81-achievement-text p {
    color: var(--pg81-text-light);
    font-size: 1.2rem;
}

/* Utilities */
.pg81-text-center {
    text-align: center;
}

.pg81-mb-1 {
    margin-bottom: 1rem;
}

.pg81-mb-2 {
    margin-bottom: 2rem;
}

.pg81-mt-2 {
    margin-top: 2rem;
}

.pg81-highlight {
    color: var(--pg81-primary);
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pg81-animate {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .pg81-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pg81-game-name {
        font-size: 1rem;
    }
}
