/**
 * PHJEWEL Layout Stylesheet
 * Prefix: v32d-
 * Color Palette: #FFB347 | #B03060 | #FFEB3B | #FFF176 | #0F0F23 | #495057
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --v32d-primary: #FFB347;
    --v32d-secondary: #B03060;
    --v32d-accent: #FFEB3B;
    --v32d-highlight: #FFF176;
    --v32d-bg: #0F0F23;
    --v32d-bg-light: #1a1a2e;
    --v32d-text: #FFF176;
    --v32d-text-light: #ffffff;
    --v32d-text-muted: #495057;
    --v32d-gradient: linear-gradient(135deg, #B03060 0%, #FFB347 100%);
    --v32d-shadow: 0 4px 20px rgba(255, 179, 71, 0.3);
    --v32d-radius: 12px;
    --v32d-radius-sm: 8px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--v32d-bg);
    color: var(--v32d-text-light);
    line-height: 1.5;
    min-height: 100vh;
}

/* Container */
.v32d-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v32d-wrapper {
    width: 100%;
    position: relative;
}

/* Header */
.v32d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--v32d-bg) 0%, rgba(15, 15, 35, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 179, 71, 0.2);
}

.v32d-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.v32d-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.v32d-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.v32d-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--v32d-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v32d-header-actions {
    display: flex;
    gap: 0.8rem;
}

.v32d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: var(--v32d-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.v32d-btn-primary {
    background: var(--v32d-gradient);
    color: var(--v32d-text-light);
    box-shadow: var(--v32d-shadow);
}

.v32d-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 179, 71, 0.4);
}

.v32d-btn-outline {
    background: transparent;
    color: var(--v32d-primary);
    border: 2px solid var(--v32d-primary);
}

.v32d-btn-outline:hover {
    background: var(--v32d-primary);
    color: var(--v32d-bg);
}

/* Menu Toggle */
.v32d-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.v32d-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--v32d-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.v32d-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--v32d-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    border-left: 1px solid rgba(255, 179, 71, 0.2);
}

.v32d-menu-active {
    right: 0;
}

.v32d-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 179, 71, 0.2);
}

.v32d-mobile-menu-close {
    font-size: 2.4rem;
    color: var(--v32d-primary);
    background: transparent;
    border: none;
    cursor: pointer;
}

.v32d-mobile-menu-nav {
    list-style: none;
}

.v32d-mobile-menu-nav li {
    margin-bottom: 1.2rem;
}

.v32d-mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--v32d-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: var(--v32d-radius-sm);
    transition: all 0.3s ease;
}

.v32d-mobile-menu-nav a:hover {
    background: rgba(255, 179, 71, 0.1);
    color: var(--v32d-primary);
}

.v32d-mobile-menu-nav i {
    width: 24px;
    text-align: center;
    font-size: 1.8rem;
}

/* Menu Overlay */
.v32d-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;
}

.v32d-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Slider */
.v32d-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--v32d-radius);
    margin: 1rem 0;
}

.v32d-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.v32d-slide {
    min-width: 100%;
    position: relative;
}

.v32d-slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.v32d-slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.v32d-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v32d-dot-active {
    background: var(--v32d-primary);
    transform: scale(1.2);
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Section */
.v32d-section {
    padding: 2rem 0;
}

.v32d-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--v32d-primary);
    text-align: center;
}

.v32d-section-subtitle {
    font-size: 1.4rem;
    color: var(--v32d-text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

/* Game Grid */
.v32d-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v32d-game-card {
    background: var(--v32d-bg-light);
    border-radius: var(--v32d-radius-sm);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 179, 71, 0.1);
}

.v32d-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--v32d-primary);
    box-shadow: var(--v32d-shadow);
}

.v32d-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.v32d-game-card-title {
    font-size: 1.1rem;
    padding: 0.6rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--v32d-text-light);
}

/* Category Label */
.v32d-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 179, 71, 0.15);
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--v32d-primary);
    margin-bottom: 1rem;
}

/* Content Box */
.v32d-content-box {
    background: var(--v32d-bg-light);
    border-radius: var(--v32d-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 179, 71, 0.1);
}

.v32d-content-box h3 {
    font-size: 1.6rem;
    color: var(--v32d-primary);
    margin-bottom: 1rem;
}

.v32d-content-box p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--v32d-text-light);
    margin-bottom: 1rem;
}

.v32d-content-box ul {
    list-style: none;
    padding-left: 0;
}

.v32d-content-box li {
    font-size: 1.3rem;
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
}

.v32d-content-box li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--v32d-primary);
    font-weight: bold;
}

/* Footer */
.v32d-footer {
    background: var(--v32d-bg-light);
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 179, 71, 0.2);
}

.v32d-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.v32d-footer-link {
    color: var(--v32d-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.v32d-footer-link:hover {
    color: var(--v32d-primary);
}

.v32d-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v32d-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.v32d-partners img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.v32d-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--v32d-text-muted);
}

/* Bottom Navigation */
.v32d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.98) 0%, var(--v32d-bg) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 179, 71, 0.2);
    display: none;
}

@media (max-width: 768px) {
    .v32d-bottom-nav {
        display: block;
    }
}

.v32d-bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    height: 60px;
}

.v32d-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--v32d-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
    border: none;
}

.v32d-nav-item:hover,
.v32d-nav-item-active {
    color: var(--v32d-primary);
    transform: scale(1.1);
}

.v32d-nav-item i,
.v32d-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.v32d-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Promo Link Styles */
.v32d-promo-link {
    color: var(--v32d-primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v32d-promo-link:hover {
    color: var(--v32d-accent);
    text-decoration: underline;
}

.v32d-promo-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--v32d-gradient);
    color: var(--v32d-text-light);
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: var(--v32d-radius);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--v32d-shadow);
}

.v32d-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 179, 71, 0.5);
}

/* RTP Badge */
.v32d-rtp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(176, 48, 96, 0.2);
    color: var(--v32d-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* FAQ Accordion */
.v32d-faq-item {
    background: var(--v32d-bg-light);
    border-radius: var(--v32d-radius-sm);
    margin-bottom: 0.8rem;
    overflow: hidden;
}

.v32d-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--v32d-text-light);
    cursor: pointer;
}

.v32d-faq-answer {
    padding: 0 1.2rem 1.2rem;
    font-size: 1.2rem;
    color: var(--v32d-text-muted);
    line-height: 1.5;
}

/* Feature Grid */
.v32d-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.v32d-feature-card {
    background: var(--v32d-bg-light);
    border-radius: var(--v32d-radius-sm);
    padding: 1.2rem;
    text-align: center;
    border: 1px solid rgba(255, 179, 71, 0.1);
    transition: all 0.3s ease;
}

.v32d-feature-card:hover {
    border-color: var(--v32d-primary);
}

.v32d-feature-card i {
    font-size: 2.4rem;
    color: var(--v32d-primary);
    margin-bottom: 0.8rem;
}

.v32d-feature-card h4 {
    font-size: 1.3rem;
    color: var(--v32d-text-light);
    margin-bottom: 0.4rem;
}

.v32d-feature-card p {
    font-size: 1.1rem;
    color: var(--v32d-text-muted);
}

/* Responsive */
@media (max-width: 430px) {
    .v32d-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .v32d-game-card-title {
        font-size: 1rem;
        padding: 0.5rem;
    }
}

@media (min-width: 769px) {
    .v32d-bottom-nav {
        display: none !important;
    }

    main {
        padding-bottom: 2rem;
    }
}
