/* OKFun PH Layout CSS - Mobile First Design */
/* All classes use prefix: v4d5- */

/* CSS Variables for Color Scheme */
:root {
    --v4d5-color-light: #E0E0E0;
    --v4d5-color-dark: #0E1621;
    --v4d5-color-accent: #F0F8FF;
    --v4d5-color-primary: #40E0D0;
    --v4d5-color-secondary: #8B0000;
    --v4d5-color-highlight: #87CEFA;
    --v4d5-font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --v4d5-font-secondary: 'Arial', sans-serif;
    --v4d5-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --v4d5-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--v4d5-font-primary);
    background: linear-gradient(135deg, var(--v4d5-color-dark) 0%, #1a2332 100%);
    color: var(--v4d5-color-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body.v4d5-no-scroll {
    overflow: hidden;
}

/* Typography */
.v4d5-h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(45deg, var(--v4d5-color-primary), var(--v4d5-color-highlight));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.v4d5-h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--v4d5-color-accent);
    margin-bottom: 1.5rem;
    position: relative;
}

.v4d5-h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--v4d5-color-primary), transparent);
    border-radius: 2px;
}

.v4d5-h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--v4d5-color-primary);
    margin-bottom: 1rem;
}

.v4d5-text {
    font-size: 1rem;
    color: var(--v4d5-color-light);
    margin-bottom: 1rem;
}

.v4d5-text-small {
    font-size: 0.875rem;
    color: rgba(224, 224, 224, 0.8);
}

/* Container */
.v4d5-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.v4d5-section {
    padding: 3rem 0;
    position: relative;
}

/* Header */
.v4d5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(14, 22, 33, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(64, 224, 208, 0.2);
    z-index: 1000;
    transition: var(--v4d5-transition);
}

.v4d5-header.v4d5-scrolled {
    background: rgba(14, 22, 33, 0.98);
    box-shadow: var(--v4d5-shadow);
}

.v4d5-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.v4d5-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--v4d5-color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.v4d5-logo::before {
    content: '🎮';
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--v4d5-color-primary));
}

.v4d5-nav-desktop {
    display: none;
}

.v4d5-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.v4d5-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v4d5-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
}

.v4d5-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.v4d5-btn:hover::before {
    width: 300px;
    height: 300px;
}

.v4d5-btn-primary {
    background: linear-gradient(45deg, var(--v4d5-color-secondary), #a00000);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.v4d5-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.5);
}

.v4d5-btn-secondary {
    background: linear-gradient(45deg, var(--v4d5-color-primary), #20b2aa);
    color: white;
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.4);
}

.v4d5-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 224, 208, 0.5);
}

.v4d5-menu-toggle {
    background: none;
    border: none;
    color: var(--v4d5-color-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--v4d5-transition);
}

.v4d5-menu-toggle:hover {
    background: rgba(64, 224, 208, 0.1);
    transform: scale(1.1);
}

/* Mobile Menu */
.v4d5-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(135deg, var(--v4d5-color-dark) 0%, #1a2332 100%);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    border-left: 1px solid rgba(64, 224, 208, 0.2);
}

.v4d5-mobile-menu.v4d5-active {
    right: 0;
}

.v4d5-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(64, 224, 208, 0.2);
}

.v4d5-menu-close {
    background: none;
    border: none;
    color: var(--v4d5-color-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--v4d5-transition);
}

.v4d5-menu-close:hover {
    transform: rotate(90deg);
}

.v4d5-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--v4d5-transition);
}

.v4d5-menu-overlay.v4d5-active {
    opacity: 1;
    visibility: visible;
}

.v4d5-menu-nav {
    list-style: none;
}

.v4d5-menu-nav li {
    margin-bottom: 0.5rem;
}

.v4d5-menu-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--v4d5-color-light);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--v4d5-transition);
    position: relative;
    overflow: hidden;
}

.v4d5-menu-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--v4d5-color-primary);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.v4d5-menu-nav a:hover {
    background: rgba(64, 224, 208, 0.1);
    color: var(--v4d5-color-primary);
    transform: translateX(5px);
}

.v4d5-menu-nav a:hover::before {
    transform: scaleY(1);
}

.v4d5-menu-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Bottom Navigation */
.v4d5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v4d5-color-dark) 0%, #1a2332 100%);
    border-top: 1px solid rgba(64, 224, 208, 0.2);
    z-index: 1000;
    padding: 0.5rem 0;
    backdrop-filter: blur(20px);
}

.v4d5-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.v4d5-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 60px;
    min-height: 60px;
    padding: 0.5rem;
    background: none;
    border: none;
    color: rgba(224, 224, 224, 0.6);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--v4d5-transition);
    cursor: pointer;
    position: relative;
}

.v4d5-bottom-nav-item:hover {
    color: var(--v4d5-color-primary);
    transform: translateY(-3px);
}

.v4d5-bottom-nav-item.v4d5-active {
    color: var(--v4d5-color-primary);
    background: rgba(64, 224, 208, 0.1);
}

.v4d5-bottom-nav-item.v4d5-active::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--v4d5-color-primary);
    border-radius: 2px;
}

.v4d5-bottom-nav-icon {
    font-size: 1.5rem;
    transition: var(--v4d5-transition);
}

.v4d5-bottom-nav-item:hover .v4d5-bottom-nav-icon {
    transform: scale(1.2);
}

.v4d5-bottom-nav-label {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Main Content */
.v4d5-main {
    padding-top: 70px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .v4d5-main {
        padding-bottom: 80px;
    }
}

/* Hero Section */
.v4d5-hero {
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.v4d5-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(64, 224, 208, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(135, 206, 250, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.v4d5-hero-content {
    position: relative;
    z-index: 1;
}

.v4d5-hero-subtitle {
    font-size: 1.2rem;
    color: var(--v4d5-color-highlight);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.v4d5-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.v4d5-hero-buttons .v4d5-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    justify-content: center;
}

/* Banner */
.v4d5-banner {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    margin: 2rem 0;
    position: relative;
    box-shadow: var(--v4d5-shadow);
}

.v4d5-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.v4d5-banner:hover img {
    transform: scale(1.05);
}

/* Game Grid */
.v4d5-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.v4d5-game-card {
    background: linear-gradient(135deg, rgba(30, 40, 55, 0.8) 0%, rgba(20, 30, 45, 0.9) 100%);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--v4d5-transition);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(64, 224, 208, 0.1);
}

.v4d5-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.3);
    border-color: var(--v4d5-color-primary);
}

.v4d5-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s;
}

.v4d5-game-card:hover .v4d5-game-image {
    transform: scale(1.1);
}

.v4d5-game-info {
    padding: 0.75rem;
    text-align: center;
}

.v4d5-game-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--v4d5-color-accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v4d5-game-type {
    font-size: 0.75rem;
    color: var(--v4d5-color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.v4d5-category-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.v4d5-category-btn {
    padding: 0.5rem 1rem;
    background: rgba(30, 40, 55, 0.8);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 20px;
    color: var(--v4d5-color-light);
    font-weight: 500;
    cursor: pointer;
    transition: var(--v4d5-transition);
    white-space: nowrap;
}

.v4d5-category-btn:hover,
.v4d5-category-btn.v4d5-active {
    background: linear-gradient(45deg, var(--v4d5-color-primary), var(--v4d5-color-highlight));
    color: var(--v4d5-color-dark);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Features Section */
.v4d5-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.v4d5-feature-card {
    background: linear-gradient(135deg, rgba(30, 40, 55, 0.8) 0%, rgba(20, 30, 45, 0.9) 100%);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(64, 224, 208, 0.1);
    transition: var(--v4d5-transition);
    position: relative;
    overflow: hidden;
}

.v4d5-feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(64, 224, 208, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: var(--v4d5-transition);
    opacity: 0;
}

.v4d5-feature-card:hover::before {
    opacity: 1;
}

.v4d5-feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--v4d5-color-primary);
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.2);
}

.v4d5-feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: v4d5-float 3s ease-in-out infinite;
}

@keyframes v4d5-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Footer */
.v4d5-footer {
    background: linear-gradient(135deg, #0a1018 0%, var(--v4d5-color-dark) 100%);
    border-top: 1px solid rgba(64, 224, 208, 0.2);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

.v4d5-footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.v4d5-footer-section h4 {
    color: var(--v4d5-color-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.v4d5-footer-links {
    list-style: none;
}

.v4d5-footer-links li {
    margin-bottom: 0.5rem;
}

.v4d5-footer-links a {
    color: rgba(224, 224, 224, 0.8);
    text-decoration: none;
    transition: var(--v4d5-transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.v4d5-footer-links a:hover {
    color: var(--v4d5-color-primary);
    transform: translateX(5px);
}

.v4d5-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.v4d5-partner-logo {
    width: 60px;
    height: 30px;
    object-fit: contain;
    filter: grayscale(100%) brightness(150%);
    transition: var(--v4d5-transition);
    opacity: 0.7;
}

.v4d5-partner-logo:hover {
    filter: grayscale(0%) brightness(100%);
    opacity: 1;
    transform: scale(1.1);
}

.v4d5-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(64, 224, 208, 0.1);
    color: rgba(224, 224, 224, 0.6);
    font-size: 0.875rem;
}

/* Utility Classes */
.v4d5-hidden {
    opacity: 0;
    transform: scale(0.9);
    transition: var(--v4d5-transition);
}

.v4d5-show {
    opacity: 1;
    transform: scale(1);
}

.v4d5-text-center {
    text-align: center;
}

.v4d5-mt-1 { margin-top: 0.5rem; }
.v4d5-mt-2 { margin-top: 1rem; }
.v4d5-mt-3 { margin-top: 1.5rem; }
.v4d5-mt-4 { margin-top: 2rem; }
.v4d5-mb-1 { margin-bottom: 0.5rem; }
.v4d5-mb-2 { margin-bottom: 1rem; }
.v4d5-mb-3 { margin-bottom: 1.5rem; }
.v4d5-mb-4 { margin-bottom: 2rem; }

/* Animations */
@keyframes v4d5-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes v4d5-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.v4d5-fade-in {
    animation: v4d5-fadeIn 0.6s ease-out;
}

/* Notification */
.v4d5-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(45deg, var(--v4d5-color-primary), var(--v4d5-color-highlight));
    color: var(--v4d5-color-dark);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    box-shadow: var(--v4d5-shadow);
}

.v4d5-notification.v4d5-show {
    transform: translateX(0);
}

/* Accordion */
.v4d5-accordion-header {
    background: rgba(30, 40, 55, 0.8);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--v4d5-transition);
    margin-bottom: 0.5rem;
}

.v4d5-accordion-header:hover {
    background: rgba(64, 224, 208, 0.1);
}

.v4d5-accordion-header.v4d5-active {
    background: rgba(64, 224, 208, 0.2);
    border-color: var(--v4d5-color-primary);
}

.v4d5-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(20, 30, 45, 0.6);
    border-radius: 0 0 12px 12px;
    margin-bottom: 1rem;
}

.v4d5-accordion-content.v4d5-active {
    max-height: 500px;
    padding: 1rem 1.5rem;
}

/* Tabs */
.v4d5-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.v4d5-tab {
    padding: 0.75rem 1.5rem;
    background: rgba(30, 40, 55, 0.8);
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 25px;
    color: var(--v4d5-color-light);
    font-weight: 500;
    cursor: pointer;
    transition: var(--v4d5-transition);
    white-space: nowrap;
}

.v4d5-tab:hover,
.v4d5-tab.v4d5-active {
    background: linear-gradient(45deg, var(--v4d5-color-primary), var(--v4d5-color-highlight));
    color: var(--v4d5-color-dark);
    border-color: transparent;
}

.v4d5-tab-content {
    display: none;
}

.v4d5-tab-content.v4d5-active {
    display: block;
    animation: v4d5-fadeIn 0.5s ease;
}

/* Responsive Design */
@media (min-width: 769px) {
    .v4d5-bottom-nav {
        display: none;
    }

    .v4d5-nav-desktop {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .v4d5-nav-desktop a {
        color: var(--v4d5-color-light);
        text-decoration: none;
        font-weight: 500;
        transition: var(--v4d5-transition);
        position: relative;
    }

    .v4d5-nav-desktop a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--v4d5-color-primary);
        transition: width 0.3s;
    }

    .v4d5-nav-desktop a:hover {
        color: var(--v4d5-color-primary);
    }

    .v4d5-nav-desktop a:hover::after {
        width: 100%;
    }

    .v4d5-hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .v4d5-hero-buttons .v4d5-btn {
        min-width: 180px;
    }

    .v4d5-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v4d5-footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .v4d5-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (min-width: 1024px) {
    .v4d5-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .v4d5-footer-content {
        grid-template-columns: repeat(4, 1fr);
    }

    .v4d5-banner {
        height: 300px;
    }

    .v4d5-game-image {
        height: 150px;
    }
}

/* Loading Animation */
.v4d5-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(64, 224, 208, 0.3);
    border-radius: 50%;
    border-top-color: var(--v4d5-color-primary);
    animation: v4d5-spin 1s ease-in-out infinite;
}

@keyframes v4d5-spin {
    to { transform: rotate(360deg); }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(14, 22, 33, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--v4d5-color-primary), var(--v4d5-color-highlight));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--v4d5-color-highlight);
}