/**
 * Pinoy Time Zone - Layout Stylesheet
 * Version: 1.0.0
 * Prefix: wd41c-
 * All classes use the wd41c- prefix for namespace isolation
 * Color Palette: #0E1621 | #006400 | #00695C | #48D1CC | #00E5FF
 */

/* CSS Variables */
:root {
    --wd41c-bg-primary: #0E1621;
    --wd41c-bg-secondary: #006400;
    --wd41c-bg-tertiary: #00695C;
    --wd41c-accent: #48D1CC;
    --wd41c-highlight: #00E5FF;
    --wd41c-text-primary: #ffffff;
    --wd41c-text-secondary: #b8c5d6;
    --wd41c-text-muted: #6b7c93;
    --wd41c-border: rgba(72, 209, 204, 0.3);
    --wd41c-shadow: rgba(0, 229, 255, 0.15);
    --wd41c-gradient: linear-gradient(135deg, #006400 0%, #00695C 50%, #48D1CC 100%);
    --wd41c-header-height: 60px;
    --wd41c-bottom-nav-height: 60px;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--wd41c-bg-primary);
    color: var(--wd41c-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.wd41c-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.wd41c-wrapper {
    padding: 2rem 1.5rem;
}

/* Header Navigation */
.wd41c-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--wd41c-header-height);
    background: linear-gradient(180deg, #0E1621 0%, #061018 100%);
    border-bottom: 1px solid var(--wd41c-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.wd41c-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.wd41c-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.wd41c-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wd41c-highlight);
    white-space: nowrap;
}

.wd41c-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wd41c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 36px;
}

.wd41c-btn-primary {
    background: var(--wd41c-gradient);
    color: var(--wd41c-text-primary);
    box-shadow: 0 4px 15px var(--wd41c-shadow);
}

.wd41c-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--wd41c-shadow);
}

.wd41c-btn-secondary {
    background: transparent;
    color: var(--wd41c-accent);
    border: 1px solid var(--wd41c-accent);
}

.wd41c-btn-secondary:hover {
    background: rgba(72, 209, 204, 0.1);
}

.wd41c-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--wd41c-border);
    border-radius: 8px;
    color: var(--wd41c-accent);
    cursor: pointer;
    font-size: 2rem;
}

/* Mobile Menu */
.wd41c-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--wd41c-bg-primary);
    border-left: 1px solid var(--wd41c-border);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.wd41c-menu-active {
    right: 0;
}

.wd41c-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;
}

.wd41c-overlay-active {
    opacity: 1;
    visibility: visible;
}

.wd41c-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wd41c-border);
}

.wd41c-menu-close {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--wd41c-border);
    border-radius: 8px;
    color: var(--wd41c-text-primary);
    cursor: pointer;
    font-size: 1.8rem;
}

.wd41c-nav-list {
    list-style: none;
}

.wd41c-nav-item {
    margin-bottom: 0.5rem;
}

.wd41c-nav-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--wd41c-text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1.4rem;
}

.wd41c-nav-link:hover,
.wd41c-nav-active {
    background: rgba(72, 209, 204, 0.1);
    color: var(--wd41c-highlight);
}

/* Main Content */
.wd41c-main {
    padding-top: var(--wd41c-header-height);
    min-height: 100vh;
}

@media (max-width: 768px) {
    .wd41c-main {
        padding-bottom: calc(var(--wd41c-bottom-nav-height) + 20px);
    }
}

/* Carousel/Slider */
.wd41c-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.wd41c-slide {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    cursor: pointer;
}

.wd41c-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.wd41c-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.wd41c-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.wd41c-dot-active {
    background: var(--wd41c-highlight);
    transform: scale(1.2);
}

/* Section Styles */
.wd41c-section {
    margin-bottom: 3rem;
}

.wd41c-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--wd41c-highlight);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--wd41c-bg-secondary);
}

.wd41c-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--wd41c-accent);
    margin-bottom: 1rem;
}

/* Game Grid */
.wd41c-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.wd41c-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wd41c-game-item:hover {
    transform: translateY(-3px);
}

.wd41c-game-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 2px solid var(--wd41c-border);
    transition: border-color 0.3s ease;
}

.wd41c-game-item:hover .wd41c-game-icon {
    border-color: var(--wd41c-highlight);
}

.wd41c-game-name {
    font-size: 1.1rem;
    color: var(--wd41c-text-secondary);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70px;
}

/* Category Section */
.wd41c-category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 100, 0, 0.3), rgba(0, 105, 92, 0.3));
    border-radius: 10px;
}

.wd41c-category-icon {
    font-size: 2.4rem;
    color: var(--wd41c-highlight);
}

.wd41c-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--wd41c-text-primary);
}

/* Cards */
.wd41c-card {
    background: linear-gradient(145deg, rgba(14, 22, 33, 0.9), rgba(6, 16, 24, 0.9));
    border: 1px solid var(--wd41c-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.wd41c-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--wd41c-accent);
    margin-bottom: 1rem;
}

.wd41c-card-text {
    color: var(--wd41c-text-secondary);
    font-size: 1.4rem;
    line-height: 1.6;
}

/* Promo Links */
.wd41c-promo-text {
    color: var(--wd41c-highlight);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.wd41c-promo-text:hover {
    color: var(--wd41c-accent);
}

/* Footer */
.wd41c-footer {
    background: linear-gradient(180deg, #061018 0%, #030810 100%);
    border-top: 1px solid var(--wd41c-border);
    padding: 3rem 1.5rem;
}

.wd41c-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.wd41c-footer-link {
    color: var(--wd41c-text-secondary);
    text-decoration: none;
    font-size: 1.3rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.wd41c-footer-link:hover {
    color: var(--wd41c-highlight);
}

.wd41c-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.wd41c-partner-logo {
    width: 40px;
    height: 25px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.wd41c-partner-logo:hover {
    opacity: 1;
}

.wd41c-copyright {
    text-align: center;
    color: var(--wd41c-text-muted);
    font-size: 1.2rem;
}

/* Bottom Navigation */
.wd41c-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--wd41c-bottom-nav-height);
    background: linear-gradient(180deg, #0E1621 0%, #060d16 100%);
    border-top: 1px solid var(--wd41c-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.wd41c-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: transparent;
    border: none;
    color: var(--wd41c-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem;
}

.wd41c-nav-btn:hover,
.wd41c-nav-btn-active {
    color: var(--wd41c-highlight);
}

.wd41c-nav-btn:hover .wd41c-nav-icon,
.wd41c-nav-btn-active .wd41c-nav-icon {
    transform: scale(1.15);
}

.wd41c-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    transition: transform 0.3s ease;
}

.wd41c-nav-label {
    font-size: 1rem;
    color: inherit;
}

/* Desktop Hide */
@media (min-width: 769px) {
    .wd41c-bottom-nav {
        display: none;
    }
}

/* Utility Classes */
.wd41c-text-center {
    text-align: center;
}

.wd41c-text-highlight {
    color: var(--wd41c-highlight);
}

.wd41c-text-accent {
    color: var(--wd41c-accent);
}

.wd41c-mb-1 {
    margin-bottom: 1rem;
}

.wd41c-mb-2 {
    margin-bottom: 2rem;
}

.wd41c-mb-3 {
    margin-bottom: 3rem;
}

.wd41c-py-2 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Animations */
@keyframes wd41c-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.wd41c-animate-pulse {
    animation: wd41c-pulse 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 380px) {
    .wd41c-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .wd41c-game-icon {
        width: 60px;
        height: 60px;
    }

    .wd41c-game-name {
        max-width: 60px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--wd41c-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--wd41c-bg-tertiary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wd41c-accent);
}

/* Selection */
::selection {
    background: var(--wd41c-bg-tertiary);
    color: var(--wd41c-highlight);
}
