/**
 * J77PH Website Common CSS Styles
 * Module prefix: w6b01-
 * Version: 1.0
 */

/* CSS Variables */
:root {
    --w6b01-primary: #00695C;
    --w6b01-primary-dark: #004C40;
    --w6b01-secondary: #34495E;
    --w6b01-accent: #20B2AA;
    --w6b01-text: #F5F5F5;
    --w6b01-text-secondary: #A9A9A9;
    --w6b01-bg: #34495E;
    --w6b01-bg-light: #2C3E50;
    --w6b01-border: #1A252F;
    --w6b01-shadow: rgba(0, 0, 0, 0.3);
    --w6b01-gradient: linear-gradient(135deg, var(--w6b01-primary), var(--w6b01-accent));
    --w6b01-transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--w6b01-text);
    background-color: var(--w6b01-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    color: var(--w6b01-text);
}

h2 {
    font-size: 1.5rem;
    color: var(--w6b01-text);
}

h3 {
    font-size: 1.25rem;
    color: var(--w6b01-text);
}

p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5rem;
}

a {
    color: var(--w6b01-accent);
    text-decoration: none;
    transition: var(--w6b01-transition);
}

a:hover {
    color: var(--w6b01-text);
    text-decoration: underline;
}

/* Layout */
.w6b01-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.w6b01-wrapper {
    width: 100%;
    padding: 0 1rem;
}

.w6b01-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.w6b01-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.w6b01-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Header Styles */
.w6b01-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--w6b01-gradient);
    color: var(--w6b01-text);
    z-index: 1000;
    box-shadow: 0 2px 10px var(--w6b01-shadow);
}

.w6b01-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    position: relative;
}

.w6b01-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.w6b01-logo-icon {
    width: 28px;
    height: 28px;
    background: var(--w6b01-text);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--w6b01-primary);
}

.w6b01-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
}

.w6b01-nav-buttons {
    display: flex;
    gap: 0.75rem;
}

.w6b01-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--w6b01-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.w6b01-btn-primary {
    background: var(--w6b01-text);
    color: var(--w6b01-primary);
}

.w6b01-btn-primary:hover {
    background: var(--w6b01-text-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--w6b01-shadow);
}

.w6b01-btn-secondary {
    background: transparent;
    color: var(--w6b01-text);
    border: 2px solid var(--w6b01-text);
}

.w6b01-btn-secondary:hover {
    background: var(--w6b01-text);
    color: var(--w6b01-primary);
}

.w6b01-menu-button {
    background: none;
    border: none;
    color: var(--w6b01-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--w6b01-transition);
}

.w6b01-menu-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation Menu */
.w6b01-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.w6b01-mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--w6b01-bg-light);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 10000;
}

.w6b01-mobile-menu.w6b01-menu-open {
    transform: translateX(0);
}

.w6b01-mobile-menu-overlay.active {
    display: block;
}

.w6b01-mobile-nav-list {
    list-style: none;
    padding: 1rem 0;
}

.w6b01-mobile-nav-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--w6b01-text);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: var(--w6b01-transition);
}

.w6b01-mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--w6b01-accent);
}

.w6b01-mobile-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--w6b01-accent);
}

/* Main Content */
.w6b01-main {
    margin-top: 60px;
    flex: 1;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Carousel Styles */
.w6b01-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--w6b01-shadow);
}

.w6b01-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.w6b01-carousel-slide.active {
    opacity: 1;
}

.w6b01-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.w6b01-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.w6b01-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--w6b01-transition);
}

.w6b01-carousel-dot.active {
    background: var(--w6b01-text);
    transform: scale(1.2);
}

/* Game Cards */
.w6b01-game-category {
    margin-bottom: 2rem;
}

.w6b01-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--w6b01-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.w6b01-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.w6b01-game-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--w6b01-bg-light);
    aspect-ratio: 1;
    cursor: pointer;
    transition: var(--w6b01-transition);
    box-shadow: 0 2px 8px var(--w6b01-shadow);
}

.w6b01-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px var(--w6b01-shadow);
}

.w6b01-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w6b01-game-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--w6b01-text);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Feature Cards */
.w6b01-feature-card {
    background: var(--w6b01-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px var(--w6b01-shadow);
    transition: var(--w6b01-transition);
}

.w6b01-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--w6b01-shadow);
}

.w6b01-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--w6b01-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--w6b01-text);
}

.w6b01-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--w6b01-text);
}

.w6b01-feature-description {
    color: var(--w6b01-text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Promo Links */
.w6b01-promo-link {
    display: inline-block;
    background: var(--w6b01-gradient);
    color: var(--w6b01-text);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--w6b01-transition);
    margin: 0.5rem 0.5rem 0.5rem 0;
    box-shadow: 0 2px 8px var(--w6b01-shadow);
}

.w6b01-promo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--w6b01-shadow);
    text-decoration: none;
    color: var(--w6b01-text);
}

/* Footer */
.w6b01-footer {
    background: var(--w6b01-bg-light);
    padding: 2rem 1rem;
    margin-top: auto;
    color: var(--w6b01-text-secondary);
    font-size: 0.875rem;
}

.w6b01-footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.w6b01-footer-section {
    text-align: center;
}

.w6b01-footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--w6b01-text);
}

.w6b01-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.w6b01-footer-link {
    color: var(--w6b01-accent);
    text-decoration: none;
    transition: var(--w6b01-transition);
}

.w6b01-footer-link:hover {
    color: var(--w6b01-text);
    text-decoration: underline;
}

.w6b01-partners {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.w6b01-partner-logo {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    transition: var(--w6b01-transition);
}

.w6b01-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.w6b01-copyright {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Bottom Navigation */
.w6b01-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--w6b01-gradient);
    z-index: 1000;
    box-shadow: 0 -2px 10px var(--w6b01-shadow);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.w6b01-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    max-width: 430px;
    margin: 0 auto;
}

.w6b01-bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: var(--w6b01-transition);
    position: relative;
    color: var(--w6b01-text);
    text-decoration: none;
}

.w6b01-bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.w6b01-bottom-nav-item.active {
    background: rgba(255, 255, 255, 0.2);
}

.w6b01-bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 20px;
    background: var(--w6b01-text);
    border-radius: 0 0 2px 2px;
}

.w6b01-bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.w6b01-bottom-nav-text {
    font-size: 10px;
    font-weight: 600;
}

/* Responsive Design */
@media (min-width: 769px) {
    .w6b01-container {
        max-width: 768px;
    }

    .w6b01-main {
        max-width: 768px;
        margin: 60px auto 0;
        padding: 0 1rem 80px;
    }

    .w6b01-bottom-nav {
        display: none;
    }

    .w6b01-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.w6b01-animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.w6b01-animate-pulse {
    animation: pulse 2s ease infinite;
}

/* Utility Classes */
.w6b01-text-center {
    text-align: center;
}

.w6b01-text-left {
    text-align: left;
}

.w6b01-text-right {
    text-align: right;
}

.w6b01-mb-1 {
    margin-bottom: 1rem;
}

.w6b01-mb-2 {
    margin-bottom: 2rem;
}

.w6b01-mt-1 {
    margin-top: 1rem;
}

.w6b01-mt-2 {
    margin-top: 2rem;
}

.w6b01-flex {
    display: flex;
}

.w6b01-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.w6b01-flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.w6b01-flex-column {
    flex-direction: column;
}

/* Responsive Font Sizes */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    p {
        font-size: 0.875rem;
    }
}