/**
 * MuMuPlayer Layout CSS
 * All classes prefixed with ga47- for namespace isolation
 * Mobile-first responsive design with max-width 430px
 */

/* Reset and Base Styles */
* {
    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.4rem;
    line-height: 1.6;
    color: #C0C0C0;
    background-color: #1A1A1A;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-color: #FA8072;
    --secondary-color: #DC143C;
    --tertiary-color: #F08080;
    --accent-color: #FFC0CB;
    --text-light: #C0C0C0;
    --text-dark: #1A1A1A;
    --background-dark: #1A1A1A;
    --background-light: #2A2A2A;
    --border-color: #333;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
}

/* Typography */
.ga47-h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.ga47-h2 {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.ga47-h3 {
    font-size: 2rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.ga47-h4 {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--tertiary-color);
    margin-bottom: 0.8rem;
}

.ga47-text {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.ga47-text-small {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Container */
.ga47-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.ga47-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ga47-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.ga47-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
}

.ga47-logo-icon {
    width: 3.2rem;
    height: 3.2rem;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
}

.ga47-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.ga47-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.ga47-btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
}

.ga47-btn-primary:hover {
    background: #b01030;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

.ga47-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.ga47-btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.ga47-menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.3rem;
    transition: background 0.3s ease;
}

.ga47-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.ga47-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--background-light);
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.ga47-mobile-menu.ga47-active {
    right: 0;
}

.ga47-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.ga47-menu-overlay.ga47-active {
    opacity: 1;
    visibility: visible;
}

.ga47-menu-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem 1.5rem;
    text-align: center;
}

.ga47-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
}

.ga47-menu-nav {
    padding: 2rem 0;
}

.ga47-menu-item {
    display: block;
    padding: 1.2rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.ga47-menu-item:hover {
    background: rgba(250, 128, 114, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.ga47-menu-item i {
    margin-right: 1rem;
    width: 2rem;
    text-align: center;
}

/* Main Content */
.ga47-main {
    margin-top: 7rem;
    min-height: calc(100vh - 7rem);
}

/* Carousel */
.ga47-carousel {
    position: relative;
    height: 20rem;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ga47-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ga47-slide.ga47-active {
    opacity: 1;
}

.ga47-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ga47-slide-content {
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ga47-slide-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ga47-slide-text {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.ga47-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.ga47-dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.ga47-dot.ga47-active {
    background: white;
}

/* Game Tabs */
.ga47-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.ga47-tab-btn {
    padding: 1rem 1.5rem;
    background: var(--background-light);
    color: var(--text-light);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 1.3rem;
    font-weight: 500;
}

.ga47-tab-btn.ga47-active {
    background: var(--primary-color);
    color: white;
}

.ga47-tab-btn:hover {
    background: var(--tertiary-color);
    color: white;
}

/* Game Grid */
.ga47-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.ga47-game-card {
    background: var(--background-light);
    border-radius: 0.8rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ga47-game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(250, 128, 114, 0.3);
}

.ga47-game-image {
    width: 100%;
    height: 6rem;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.ga47-game-title {
    padding: 0.8rem 0.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Sections */
.ga47-section {
    margin-bottom: 3rem;
}

.ga47-card {
    background: var(--background-light);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ga47-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ga47-card-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* FAQ */
.ga47-faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.ga47-faq-question {
    padding: 1.5rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
}

.ga47-faq-question::after {
    content: '▼';
    transition: transform 0.3s ease;
}

.ga47-faq-item.ga47-open .ga47-faq-question::after {
    transform: rotate(180deg);
}

.ga47-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
}

.ga47-faq-item.ga47-open .ga47-faq-answer {
    max-height: 20rem;
    padding-bottom: 1.5rem;
}

/* Search */
.ga47-search {
    position: relative;
    margin-bottom: 2rem;
}

.ga47-search-input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 2.5rem;
    color: var(--text-light);
    font-size: 1.4rem;
}

.ga47-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.ga47-search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.6rem;
}

.ga47-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    max-height: 20rem;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.ga47-search-results.ga47-active {
    display: block;
}

.ga47-search-result {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

.ga47-search-result:hover {
    background: rgba(250, 128, 114, 0.1);
    color: var(--primary-color);
}

.ga47-search-no-results {
    padding: 1rem 1.5rem;
    color: var(--text-light);
    text-align: center;
}

/* Bottom Navigation */
.ga47-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.ga47-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.8rem;
    text-decoration: none;
    color: var(--text-light);
    font-size: 1rem;
    gap: 0.3rem;
}

.ga47-nav-item:hover {
    background: rgba(250, 128, 114, 0.1);
    color: var(--primary-color);
}

.ga47-nav-item.ga47-active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
}

.ga47-nav-icon {
    font-size: 2.4rem;
    line-height: 1;
}

.ga47-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.ga47-footer {
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 8rem;
    margin-top: 3rem;
}

.ga47-footer-content {
    text-align: center;
}

.ga47-partners {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ga47-partner-logo {
    width: 4rem;
    height: 4rem;
    background: var(--border-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.ga47-partner-logo:hover {
    background: var(--primary-color);
    color: white;
}

.ga47-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ga47-footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ga47-footer-link:hover {
    color: var(--primary-color);
}

.ga47-copyright {
    color: var(--text-light);
    opacity: 0.7;
    font-size: 1.2rem;
}

/* Utility Classes */
.ga47-text-center {
    text-align: center;
}

.ga47-text-left {
    text-align: left;
}

.ga47-text-right {
    text-align: right;
}

.ga47-mb-1 {
    margin-bottom: 1rem;
}

.ga47-mb-2 {
    margin-bottom: 2rem;
}

.ga47-mb-3 {
    margin-bottom: 3rem;
}

.ga47-mt-1 {
    margin-top: 1rem;
}

.ga47-mt-2 {
    margin-top: 2rem;
}

.ga47-mt-3 {
    margin-top: 3rem;
}

.ga47-hidden {
    display: none !important;
}

.ga47-visible {
    display: block !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ga47-main {
        padding-bottom: 8rem;
    }

    .ga47-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ga47-carousel {
        height: 16rem;
    }

    .ga47-slide-title {
        font-size: 2rem;
    }

    .ga47-slide-text {
        font-size: 1.4rem;
    }
}

@media (min-width: 769px) {
    .ga47-bottom-nav {
        display: none;
    }

    .ga47-main {
        padding-bottom: 0;
    }

    .ga47-container {
        max-width: 1200px;
    }

    .ga47-games-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .ga47-carousel {
        height: 25rem;
    }
}

/* Animations */
@keyframes ga47fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ga47-fade-in {
    animation: ga47fadeIn 0.5s ease-out;
}

@keyframes ga47pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.ga47-pulse {
    animation: ga47pulse 2s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 0.8rem;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 0.4rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}