/**
 * Pacman Super Ace - Layout Stylesheet
 * Prefix: v142-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --v142-primary: #D2691E;
    --v142-secondary: #BC8F8F;
    --v142-accent: #F0E68C;
    --v142-bg-dark: #2C2C2C;
    --v142-bg-light: #E0E0E0;
    --v142-text-light: #F0E68C;
    --v142-text-dark: #2C2C2C;
    --v142-gradient-start: #D2691E;
    --v142-gradient-end: #BC8F8F;
}

/* 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-color: var(--v142-bg-dark);
    color: var(--v142-bg-light);
    line-height: 1.5rem;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.v142-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.v142-wrapper {
    padding: 2rem 0;
}

/* Header */
.v142-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--v142-bg-dark) 0%, #3a3a3a 100%);
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.v142-header.v142-scrolled {
    background: rgba(44, 44, 44, 0.98);
    padding: 0.8rem 1.5rem;
}

.v142-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.v142-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v142-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.v142-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--v142-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v142-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.v142-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 70px;
}

.v142-btn-primary {
    background: linear-gradient(135deg, var(--v142-primary) 0%, #e07830 100%);
    color: #fff;
}

.v142-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.4);
}

.v142-btn-secondary {
    background: transparent;
    border: 2px solid var(--v142-accent);
    color: var(--v142-accent);
}

.v142-btn-secondary:hover {
    background: var(--v142-accent);
    color: var(--v142-bg-dark);
}

.v142-menu-toggle {
    background: transparent;
    border: none;
    color: var(--v142-accent);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.v142-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--v142-bg-dark) 0%, #1a1a1a 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.v142-mobile-menu.pro142-active {
    right: 0;
}

.v142-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;
}

.v142-menu-overlay.pro142-active {
    opacity: 1;
    visibility: visible;
}

.v142-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(240, 230, 140, 0.2);
}

.v142-menu-close {
    background: transparent;
    border: none;
    color: var(--v142-accent);
    font-size: 2.4rem;
    cursor: pointer;
}

.v142-nav-list {
    list-style: none;
}

.v142-nav-item {
    margin-bottom: 0.5rem;
}

.v142-nav-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--v142-bg-light);
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.v142-nav-link:hover {
    background: rgba(210, 105, 30, 0.2);
    color: var(--v142-accent);
    padding-left: 1.5rem;
}

/* Slider */
.v142-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 70px;
}

.v142-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.v142-slide {
    min-width: 100%;
    cursor: pointer;
}

.v142-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}

.v142-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.v142-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v142-dot.v142-active {
    background: var(--v142-accent);
    width: 20px;
    border-radius: 4px;
}

/* Main Content */
.v142-main {
    padding-top: 70px;
    padding-bottom: 2rem;
}

@media (max-width: 768px) {
    .v142-main {
        padding-bottom: 80px;
    }
}

/* Section Title */
.v142-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v142-accent);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.v142-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--v142-primary), var(--v142-secondary));
    border-radius: 2px;
}

/* H1 Title */
.v142-h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--v142-accent);
    text-align: center;
    margin: 1.5rem 0;
    line-height: 1.4;
}

/* Game Grid */
.v142-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.v142-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.v142-game-item:hover {
    transform: scale(1.05);
}

.v142-game-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin: 0 auto 0.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.v142-game-item:hover .v142-game-icon {
    border-color: var(--v142-primary);
}

.v142-game-name {
    font-size: 1rem;
    color: var(--v142-bg-light);
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Section */
.v142-category-section {
    margin-bottom: 2.5rem;
}

.v142-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.v142-category-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--v142-primary), var(--v142-secondary));
    border-radius: 8px;
    color: #fff;
    font-size: 1.6rem;
}

.v142-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--v142-accent);
}

/* Content Box */
.v142-content-box {
    background: linear-gradient(135deg, rgba(188, 143, 143, 0.1) 0%, rgba(44, 44, 44, 0.8) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(240, 230, 140, 0.1);
}

.v142-content-box h2 {
    font-size: 1.6rem;
    color: var(--v142-accent);
    margin-bottom: 1rem;
}

.v142-content-box p {
    font-size: 1.3rem;
    color: var(--v142-bg-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.v142-content-box ul {
    list-style: none;
    padding-left: 0;
}

.v142-content-box li {
    font-size: 1.3rem;
    color: var(--v142-bg-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.v142-content-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--v142-primary);
    border-radius: 50%;
}

/* Promo Link */
.v142-promo-link {
    color: var(--v142-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.v142-promo-link:hover {
    color: var(--v142-accent);
    text-decoration: underline;
}

.v142-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--v142-primary) 0%, #e07830 100%);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v142-promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.5);
}

/* Footer */
.v142-footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(240, 230, 140, 0.1);
}

.v142-footer-section {
    margin-bottom: 2rem;
}

.v142-footer-title {
    font-size: 1.4rem;
    color: var(--v142-accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.v142-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.v142-footer-link {
    font-size: 1.2rem;
    color: var(--v142-bg-light);
    cursor: pointer;
    transition: color 0.3s ease;
}

.v142-footer-link:hover {
    color: var(--v142-primary);
}

.v142-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.v142-partner-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.v142-partner-logo:hover {
    opacity: 1;
}

.v142-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(224, 224, 224, 0.6);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(240, 230, 140, 0.1);
}

/* Bottom Navigation */
.v142-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(44, 44, 44, 0.98) 0%, rgba(26, 26, 26, 0.99) 100%);
    border-top: 1px solid rgba(210, 105, 30, 0.3);
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

@media (min-width: 769px) {
    .v142-bottom-nav {
        display: none;
    }
}

.v142-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    background: transparent;
    border: none;
}

.v142-nav-btn:hover,
.v142-nav-btn.v142-active {
    background: rgba(210, 105, 30, 0.15);
    transform: scale(1.05);
}

.v142-nav-btn i,
.v142-nav-btn .material-icons-outlined {
    font-size: 24px;
    color: var(--v142-bg-light);
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.v142-nav-btn:hover i,
.v142-nav-btn:hover .material-icons-outlined,
.v142-nav-btn.v142-active i,
.v142-nav-btn.v142-active .material-icons-outlined {
    color: var(--v142-primary);
}

.v142-nav-btn span {
    font-size: 1rem;
    color: var(--v142-bg-light);
    font-weight: 500;
}

.v142-nav-btn:hover span,
.v142-nav-btn.v142-active span {
    color: var(--v142-accent);
}

/* RTP Table */
.v142-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
}

.v142-rtp-table th,
.v142-rtp-table td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid rgba(240, 230, 140, 0.1);
}

.v142-rtp-table th {
    background: rgba(210, 105, 30, 0.2);
    color: var(--v142-accent);
    font-weight: 600;
}

.v142-rtp-table td {
    color: var(--v142-bg-light);
}

/* Feature List */
.v142-feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.v142-feature-item {
    background: rgba(188, 143, 143, 0.1);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v142-feature-item:hover {
    background: rgba(210, 105, 30, 0.2);
    transform: translateY(-2px);
}

.v142-feature-icon {
    font-size: 2.4rem;
    color: var(--v142-primary);
    margin-bottom: 0.5rem;
}

.v142-feature-text {
    font-size: 1.2rem;
    color: var(--v142-bg-light);
    font-weight: 500;
}

/* Internal Links */
.v142-internal-link {
    color: var(--v142-secondary);
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.v142-internal-link:hover {
    color: var(--v142-primary);
}

/* Responsive */
@media (max-width: 380px) {
    .v142-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .v142-game-icon {
        width: 50px;
        height: 50px;
    }

    .v142-game-name {
        font-size: 0.9rem;
    }
}

/* Utilities */
.v142-text-center {
    text-align: center;
}

.v142-mt-2 {
    margin-top: 2rem;
}

.v142-mb-2 {
    margin-bottom: 2rem;
}

.v142-hidden-desktop {
    display: block;
}

@media (min-width: 769px) {
    .v142-hidden-desktop {
        display: none;
    }
}
