/**
 * big bunny ph - Design System CSS
 * All classes use pg72- prefix for namespace isolation
 */

/* CSS Variables */
:root {
    --pg72-primary: #FFE135;
    --pg72-secondary: #FFEFD5;
    --pg72-dark: #333333;
    --pg72-accent: #B8860B;
    --pg72-light: #FAFAFA;
    --pg72-orange: #FF8C00;
    --pg72-success: #28a745;
    --pg72-danger: #dc3545;
    --pg72-shadow: rgba(0, 0, 0, 0.1);
    --pg72-shadow-lg: rgba(0, 0, 0, 0.2);
}

/* Reset and Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--pg72-dark);
    background-color: var(--pg72-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.pg72-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pg72-wrapper {
    padding-top: 7rem;
    padding-bottom: 8rem;
}

@media (min-width: 769px) {
    .pg72-wrapper {
        padding-bottom: 2rem;
    }
}

/* Header */
.pg72-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: linear-gradient(135deg, var(--pg72-dark) 0%, #1a1a1a 100%);
    box-shadow: 0 2px 10px var(--pg72-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.pg72-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.pg72-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--pg72-primary);
    font-weight: 700;
    font-size: 1.8rem;
}

.pg72-logo-icon {
    width: 3.2rem;
    height: 3.2rem;
    margin-right: 0.8rem;
}

.pg72-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pg72-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 4rem;
}

.pg72-btn-primary {
    background: linear-gradient(135deg, var(--pg72-primary) 0%, var(--pg72-orange) 100%);
    color: var(--pg72-dark);
}

.pg72-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--pg72-shadow);
}

.pg72-btn-outline {
    background: transparent;
    color: var(--pg72-primary);
    border: 2px solid var(--pg72-primary);
}

.pg72-btn-outline:hover {
    background: var(--pg72-primary);
    color: var(--pg72-dark);
}

.pg72-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.pg72-menu-toggle span {
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    background: var(--pg72-primary);
    margin: 0.3rem 0;
    transition: all 0.3s ease;
    border-radius: 0.2rem;
}

/* Mobile Menu */
.pg72-mobile-menu {
    position: fixed;
    top: 6rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pg72-dark);
    z-index: 9999;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.pg72-mobile-menu.pg72-menu-open {
    transform: translateX(0);
}

.pg72-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pg72-menu-link {
    display: block;
    padding: 1.5rem;
    color: var(--pg72-secondary);
    text-decoration: none;
    font-size: 1.8rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.pg72-menu-link:hover {
    background: var(--pg72-accent);
    color: var(--pg72-light);
    padding-left: 2rem;
}

/* Carousel */
.pg72-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--pg72-shadow-lg);
}

.pg72-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.pg72-carousel-slide {
    flex: 0 0 100%;
    position: relative;
}

.pg72-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.pg72-carousel-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.pg72-carousel-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: var(--pg72-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.pg72-carousel-dot.pg72-active {
    background: var(--pg72-primary);
    transform: scale(1.2);
}

/* Grid System */
.pg72-grid {
    display: grid;
    gap: 1rem;
}

.pg72-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.pg72-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pg72-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 380px) {
    .pg72-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Cards */
.pg72-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 10px var(--pg72-shadow);
    transition: all 0.3s ease;
}

.pg72-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--pg72-shadow-lg);
}

.pg72-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background: white;
    border-radius: 0.8rem;
    padding: 1rem;
    box-shadow: 0 2px 8px var(--pg72-shadow);
    transition: all 0.3s ease;
}

.pg72-game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--pg72-shadow-lg);
}

.pg72-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.6rem;
    margin-bottom: 0.8rem;
}

.pg72-game-name {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    color: var(--pg72-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* Section */
.pg72-section {
    margin-bottom: 3rem;
}

.pg72-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg72-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pg72-section-title::before {
    content: '';
    width: 0.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--pg72-primary) 0%, var(--pg72-orange) 100%);
    border-radius: 0.3rem;
}

/* Typography */
.pg72-heading {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--pg72-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.pg72-text {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.pg72-link {
    color: var(--pg72-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.pg72-link:hover {
    color: var(--pg72-orange);
    text-decoration: underline;
}

/* Feature List */
.pg72-feature-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.pg72-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.8rem;
    box-shadow: 0 2px 8px var(--pg72-shadow);
}

.pg72-feature-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pg72-primary) 0%, var(--pg72-orange) 100%);
    border-radius: 50%;
    color: var(--pg72-dark);
}

/* Partners */
.pg72-partners {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.pg72-partner-logo {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.pg72-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Footer */
.pg72-footer {
    background: var(--pg72-dark);
    color: var(--pg72-secondary);
    padding: 3rem 0 8rem;
    margin-top: 4rem;
}

.pg72-footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pg72-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.pg72-footer-link {
    color: var(--pg72-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.pg72-footer-link:hover {
    color: var(--pg72-primary);
}

.pg72-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    font-size: 1.2rem;
}

/* Bottom Navigation */
.pg72-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6.4rem;
    background: linear-gradient(180deg, #2a2a2a 0%, var(--pg72-dark) 100%);
    box-shadow: 0 -2px 10px var(--pg72-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 1rem;
}

.pg72-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--pg72-secondary);
    min-width: 6rem;
    min-height: 6rem;
    transition: all 0.3s ease;
    border-radius: 0.8rem;
}

.pg72-bottom-nav-item:hover,
.pg72-bottom-nav-item.pg72-active {
    background: rgba(255, 225, 53, 0.1);
    color: var(--pg72-primary);
    transform: scale(1.05);
}

.pg72-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.pg72-bottom-nav-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .pg72-bottom-nav {
        display: none;
    }
}

/* Utility Classes */
.pg72-text-center {
    text-align: center;
}

.pg72-text-primary {
    color: var(--pg64-primary);
}

.pg72-mt-1 { margin-top: 1rem; }
.pg72-mt-2 { margin-top: 2rem; }
.pg72-mt-3 { margin-top: 3rem; }
.pg72-mb-1 { margin-bottom: 1rem; }
.pg72-mb-2 { margin-bottom: 2rem; }
.pg72-mb-3 { margin-bottom: 3rem; }

/* Animations */
@keyframes pg72-fadeIn {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pg72-loaded .pg72-card,
.pg72-loaded .pg72-game-card {
    animation: pg72-fadeIn 0.6s ease forwards;
}

/* Responsive */
@media (min-width: 769px) {
    .pg72-container {
        max-width: 1200px;
    }

    .pg72-grid-4 {
        grid-template-columns: repeat(6, 1fr);
    }
}
