/* Big Bunny PH CSS Styles */
/* All classes use prefix: g27d- */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #D3D3D3;
    background-color: #2D2D2D;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-color: #C9C9FF;
    --bg-dark: #2D2D2D;
    --text-light: #D3D3D3;
    --text-white: #FFFFFF;
    --accent-color: #A8A8FF;
    --border-color: #444444;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --error-color: #F44336;
}

/* Typography */
.g27d-text-xs { font-size: 1rem; }
.g27d-text-sm { font-size: 1.2rem; }
.g27d-text-base { font-size: 1.4rem; }
.g27d-text-lg { font-size: 1.6rem; }
.g27d-text-xl { font-size: 1.8rem; }
.g27d-text-2xl { font-size: 2rem; }
.g27d-text-3xl { font-size: 2.4rem; }
.g27d-text-4xl { font-size: 3.2rem; }

.g27d-font-light { font-weight: 300; }
.g27d-font-normal { font-weight: 400; }
.g27d-font-medium { font-weight: 500; }
.g27d-font-semibold { font-weight: 600; }
.g27d-font-bold { font-weight: 700; }

.g27d-text-center { text-align: center; }
.g27d-text-left { text-align: left; }
.g27d-text-right { text-align: right; }

/* Layout Utilities */
.g27d-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.g27d-flex { display: flex; }
.g27d-flex-col { flex-direction: column; }
.g27d-flex-row { flex-direction: row; }
.g27d-flex-wrap { flex-wrap: wrap; }
.g27d-items-center { align-items: center; }
.g27d-items-start { align-items: flex-start; }
.g27d-items-end { align-items: flex-end; }
.g27d-justify-center { justify-content: center; }
.g27d-justify-between { justify-content: space-between; }
.g27d-justify-around { justify-content: space-around; }

.g27d-grid { display: grid; }
.g27d-gap-1 { gap: 0.5rem; }
.g27d-gap-2 { gap: 1rem; }
.g27d-gap-3 { gap: 1.5rem; }
.g27d-gap-4 { gap: 2rem; }

.g27d-m-0 { margin: 0; }
.g27d-mt-1 { margin-top: 0.5rem; }
.g27d-mt-2 { margin-top: 1rem; }
.g27d-mt-3 { margin-top: 1.5rem; }
.g27d-mt-4 { margin-top: 2rem; }
.g27d-mb-1 { margin-bottom: 0.5rem; }
.g27d-mb-2 { margin-bottom: 1rem; }
.g27d-mb-3 { margin-bottom: 1.5rem; }
.g27d-mb-4 { margin-bottom: 2rem; }
.g27d-p-0 { padding: 0; }
.g27d-p-1 { padding: 0.5rem; }
.g27d-p-2 { padding: 1rem; }
.g27d-p-3 { padding: 1.5rem; }
.g27d-p-4 { padding: 2rem; }

/* Header Styles */
.g27d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1A1A1A 100%);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.g27d-header-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.g27d-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-white);
}

.g27d-logo-icon {
    width: 3.2rem;
    height: 3.2rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--bg-dark);
}

.g27d-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.g27d-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.g27d-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 0.8rem;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.g27d-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--bg-dark);
}

.g27d-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 201, 255, 0.3);
}

.g27d-btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.g27d-btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.g27d-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.g27d-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.g27d-mobile-menu.active {
    right: 0;
}

.g27d-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.g27d-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.g27d-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

.g27d-menu-nav {
    margin-top: 4rem;
}

.g27d-menu-nav ul {
    list-style: none;
}

.g27d-menu-nav li {
    margin-bottom: 1.5rem;
}

.g27d-menu-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    display: block;
    padding: 1rem 0;
    transition: color 0.3s ease;
}

.g27d-menu-nav a:hover {
    color: var(--primary-color);
}

/* Main Content */
.g27d-main {
    margin-top: 7rem; /* Account for fixed header */
    padding-bottom: 8rem; /* Account for bottom nav on mobile */
}

/* Carousel Styles */
.g27d-carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.g27d-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.g27d-carousel-slide.active {
    opacity: 1;
}

.g27d-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g27d-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem;
}

.g27d-carousel-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.g27d-carousel-desc {
    font-size: 1.2rem;
    opacity: 0.9;
}

.g27d-carousel-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.g27d-carousel-dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.g27d-carousel-dot.active {
    background: var(--primary-color);
}

.g27d-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.8rem;
    transition: background 0.3s ease;
}

.g27d-carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.g27d-carousel-prev {
    left: 1rem;
}

.g27d-carousel-next {
    right: 1rem;
}

/* Game Grid Styles */
.g27d-games-section {
    margin-bottom: 3rem;
}

.g27d-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.g27d-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.g27d-section-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.g27d-section-link:hover {
    color: var(--primary-color);
}

.g27d-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.g27d-game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.g27d-game-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.g27d-game-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 0.8rem;
    border-radius: 0.8rem;
    overflow: hidden;
}

.g27d-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.g27d-game-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.2;
    height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Content Sections */
.g27d-content-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.g27d-content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.g27d-content-text {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.g27d-content-list {
    list-style: none;
    padding-left: 0;
}

.g27d-content-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    color: var(--text-light);
}

.g27d-content-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* FAQ Styles */
.g27d-faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.g27d-faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.g27d-faq-question:hover {
    color: var(--primary-color);
}

.g27d-faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
    display: none;
}

.g27d-faq-item.active .g27d-faq-answer {
    display: block;
}

.g27d-faq-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.g27d-faq-item.active .g27d-faq-toggle {
    transform: rotate(180deg);
}

/* Bottom Navigation */
.g27d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1A1A1A 100%);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
}

.g27d-bottom-nav-container {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.g27d-bottom-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: none;
    background: none;
    color: var(--text-light);
    text-decoration: none;
}

.g27d-bottom-nav-item:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.g27d-bottom-nav-item.active {
    color: var(--primary-color);
}

.g27d-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
}

.g27d-bottom-nav-label {
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.g27d-footer {
    background: #1A1A1A;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

.g27d-footer-section {
    margin-bottom: 2rem;
}

.g27d-footer-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.g27d-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.g27d-footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.g27d-footer-links a:hover {
    color: var(--primary-color);
}

.g27d-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.g27d-partner-logo {
    width: 6rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text-light);
}

.g27d-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .g27d-main {
        padding-bottom: 8rem; /* Space for bottom nav */
    }

    .g27d-menu-toggle {
        display: block;
    }

    .g27d-header-actions .g27d-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.2rem;
    }

    .g27d-games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .g27d-carousel-container {
        height: 180px;
    }

    .g27d-carousel-title {
        font-size: 1.8rem;
    }

    .g27d-content-section {
        padding: 1.5rem;
    }

    .g27d-bottom-nav {
        display: block;
    }
}

@media (min-width: 769px) {
    .g27d-bottom-nav {
        display: none;
    }

    body {
        max-width: 100%;
    }

    .g27d-container {
        max-width: 1200px;
    }

    .g27d-header-container {
        max-width: 1200px;
    }

    .g27d-games-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .g27d-carousel-container {
        height: 250px;
    }
}

/* Utility Classes */
.g27d-hidden { display: none; }
.g27d-block { display: block; }
.g27d-inline { display: inline; }
.g27d-inline-block { display: inline-block; }

.g27d-rounded { border-radius: 0.5rem; }
.g27d-rounded-lg { border-radius: 1rem; }
.g27d-rounded-full { border-radius: 50%; }

.g27d-shadow { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.g27d-shadow-lg { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }

.g27d-transition { transition: all 0.3s ease; }
.g27d-transition-fast { transition: all 0.15s ease; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Loading Animation */
@keyframes g27d-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.g27d-fade-in {
    animation: g27d-fadeIn 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.g27d-btn:focus,
.g27d-menu-toggle:focus,
.g27d-bottom-nav-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #FFFFFF;
        --text-light: #FFFFFF;
        --border-color: #FFFFFF;
    }
}