/**
 * 1plusgame CSS Styles
 * All classes use prefix "vfe1-" for namespace isolation
 * Mobile-first design with max-width: 430px
 */

/* 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: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1B263B;
    background-color: #F5DEB3;
    overflow-x: hidden;
}

/* Color Palette */
:root {
    --vfe1-primary: #F5DEB3;
    --vfe1-secondary: #1B263B;
    --vfe1-accent: #FFDEAD;
    --vfe1-dark: #0D1B2A;
    --vfe1-light: #FFF8DC;
    --vfe1-gold: #FFD700;
    --vfe1-white: #FFFFFF;
    --vfe1-gray: #8B8B8B;
    --vfe1-light-gray: #F5F5F5;
}

/* Typography */
.vfe1-heading {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--vfe1-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.vfe1-subheading {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--vfe1-secondary);
    margin-bottom: 1rem;
}

.vfe1-text {
    font-size: 1.4rem;
    color: var(--vfe1-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.vfe1-small-text {
    font-size: 1.2rem;
    color: var(--vfe1-gray);
}

/* Header Styles */
.vfe1-header {
    background: linear-gradient(135deg, var(--vfe1-secondary) 0%, var(--vfe1-dark) 100%);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.vfe1-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.vfe1-logo {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--vfe1-gold);
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.vfe1-nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.vfe1-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px; /* Touch-friendly */
}

.vfe1-btn-primary {
    background: linear-gradient(135deg, var(--vfe1-gold) 0%, #FFA500 100%);
    color: var(--vfe1-secondary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.vfe1-btn-primary:hover {
    background: linear-gradient(135deg, #FFA500 0%, var(--vfe1-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.vfe1-btn-secondary {
    background: transparent;
    color: var(--vfe1-white);
    border: 2px solid var(--vfe1-gold);
}

.vfe1-btn-secondary:hover {
    background: var(--vfe1-gold);
    color: var(--vfe1-secondary);
    transform: translateY(-2px);
}

.vfe1-menu-toggle {
    background: none;
    border: none;
    color: var(--vfe1-white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.vfe1-menu-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Mobile Menu */
.vfe1-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: linear-gradient(135deg, var(--vfe1-secondary) 0%, var(--vfe1-dark) 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.vfe1-mobile-menu.vfe1-active {
    right: 0;
}

.vfe1-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.vfe1-menu-close {
    background: none;
    border: none;
    color: var(--vfe1-white);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.vfe1-menu-close:hover {
    background-color: rgba(255,255,255,0.1);
}

.vfe1-menu-nav {
    padding: 2rem;
}

.vfe1-menu-nav ul {
    list-style: none;
}

.vfe1-menu-nav li {
    margin-bottom: 1rem;
}

.vfe1-menu-nav a {
    color: var(--vfe1-white);
    text-decoration: none;
    font-size: 1.6rem;
    padding: 1rem;
    display: block;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.vfe1-menu-nav a:hover {
    background-color: rgba(255,215,0,0.1);
    color: var(--vfe1-gold);
}

.vfe1-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vfe1-menu-overlay.vfe1-active {
    opacity: 1;
    visibility: visible;
}

.vfe1-no-scroll {
    overflow: hidden;
}

/* Main Content */
.vfe1-main {
    margin-top: 7rem; /* Account for fixed header */
    min-height: calc(100vh - 7rem);
}

@media (max-width: 768px) {
    .vfe1-main {
        padding-bottom: 8rem; /* Account for bottom nav */
    }
}

/* Carousel Styles */
.vfe1-carousel-container {
    position: relative;
    width: 100%;
    height: 25rem;
    overflow: hidden;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.vfe1-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.vfe1-carousel-slide.vfe1-active {
    opacity: 1;
}

.vfe1-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vfe1-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--vfe1-white);
    padding: 2rem;
}

.vfe1-carousel-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.vfe1-carousel-text {
    font-size: 1.4rem;
    opacity: 0.9;
}

.vfe1-carousel-controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.vfe1-carousel-indicator {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.vfe1-carousel-indicator.vfe1-active {
    background: var(--vfe1-gold);
}

/* Game Categories */
.vfe1-game-section {
    margin: 3rem 0;
    padding: 0 1rem;
}

.vfe1-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.vfe1-category-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vfe1-secondary);
    position: relative;
}

.vfe1-category-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 0.3rem;
    background: var(--vfe1-gold);
    border-radius: 0.2rem;
}

.vfe1-view-all {
    color: var(--vfe1-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.vfe1-view-all:hover {
    color: var(--vfe1-gold);
}

.vfe1-games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.vfe1-game-card {
    background: var(--vfe1-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.vfe1-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.vfe1-game-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.vfe1-game-info {
    padding: 1rem;
}

.vfe1-game-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--vfe1-secondary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.vfe1-game-type {
    font-size: 1.2rem;
    color: var(--vfe1-gray);
    text-align: center;
}

/* Content Modules */
.vfe1-content-section {
    margin: 3rem 0;
    padding: 2rem 1rem;
    background: var(--vfe1-light);
    border-radius: 1rem;
}

.vfe1-content-grid {
    display: grid;
    gap: 2rem;
}

.vfe1-content-card {
    background: var(--vfe1-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.vfe1-content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.vfe1-content-icon {
    font-size: 3rem;
    color: var(--vfe1-gold);
    margin-bottom: 1rem;
}

.vfe1-content-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vfe1-secondary);
    margin-bottom: 1rem;
}

.vfe1-content-text {
    font-size: 1.4rem;
    color: var(--vfe1-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.vfe1-content-link {
    color: var(--vfe1-gold);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.vfe1-content-link:hover {
    color: var(--vfe1-secondary);
}

/* Partners Section */
.vfe1-partners-section {
    margin: 3rem 0;
    padding: 2rem 1rem;
    background: var(--vfe1-white);
    border-radius: 1rem;
    text-align: center;
}

.vfe1-partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.vfe1-partner-icon {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.vfe1-partner-icon:hover {
    opacity: 1;
}

/* Footer */
.vfe1-footer {
    background: var(--vfe1-secondary);
    color: var(--vfe1-white);
    padding: 3rem 1rem 2rem;
    margin-top: 4rem;
}

.vfe1-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.vfe1-footer-section {
    margin-bottom: 2rem;
}

.vfe1-footer-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--vfe1-gold);
}

.vfe1-footer-links {
    list-style: none;
}

.vfe1-footer-links li {
    margin-bottom: 0.5rem;
}

.vfe1-footer-links a {
    color: var(--vfe1-white);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.vfe1-footer-links a:hover {
    color: var(--vfe1-gold);
}

.vfe1-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.vfe1-footer-text {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

/* Bottom Navigation */
.vfe1-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--vfe1-secondary) 0%, var(--vfe1-dark) 100%);
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

@media (min-width: 769px) {
    .vfe1-bottom-nav {
        display: none;
    }
}

.vfe1-bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.vfe1-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 6rem;
    padding: 0.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.vfe1-bottom-nav-item:hover,
.vfe1-bottom-nav-item.vfe1-active {
    color: var(--vfe1-gold);
    background: rgba(255,215,0,0.1);
    transform: translateY(-2px);
}

.vfe1-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.vfe1-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vfe1-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .vfe1-game-image {
        height: 10rem;
    }

    .vfe1-partners-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }

    .vfe1-partner-icon {
        width: 3rem;
        height: 3rem;
    }

    .vfe1-carousel-container {
        height: 20rem;
    }

    .vfe1-heading {
        font-size: 2rem;
    }

    .vfe1-category-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 430px) {
    .vfe1-header-container {
        padding: 0 1rem;
    }

    .vfe1-btn {
        padding: 0.6rem 1.2rem;
        font-size: 1.2rem;
    }

    .vfe1-game-section {
        padding: 0 0.5rem;
    }

    .vfe1-content-section {
        padding: 1.5rem 0.5rem;
    }

    .vfe1-content-card {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.vfe1-text-center {
    text-align: center;
}

.vfe1-text-left {
    text-align: left;
}

.vfe1-text-right {
    text-align: right;
}

.vfe1-mb-1 {
    margin-bottom: 1rem;
}

.vfe1-mb-2 {
    margin-bottom: 2rem;
}

.vfe1-mt-1 {
    margin-top: 1rem;
}

.vfe1-mt-2 {
    margin-top: 2rem;
}

.vfe1-hidden {
    display: none;
}

.vfe1-visible {
    display: block;
}

/* Animation Classes */
.vfe1-fade-in {
    animation: vfe1FadeIn 0.5s ease-in;
}

.vfe1-slide-up {
    animation: vfe1SlideUp 0.5s ease-out;
}

@keyframes vfe1FadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes vfe1SlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Affiliate Link Styling */
.vfe1-affiliate-link {
    color: var(--vfe1-gold);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vfe1-affiliate-link:hover {
    color: var(--vfe1-secondary);
    text-decoration: underline;
}

.vfe1-affiliate-link.vfe1-clicked {
    transform: scale(0.95);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.vfe1-btn:focus,
.vfe1-menu-toggle:focus,
.vfe1-menu-close:focus,
.vfe1-carousel-indicator:focus,
.vfe1-bottom-nav-item:focus {
    outline: 2px solid var(--vfe1-gold);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .vfe1-header,
    .vfe1-bottom-nav,
    .vfe1-mobile-menu,
    .vfe1-menu-overlay {
        display: none !important;
    }

    .vfe1-main {
        margin-top: 0;
        padding-bottom: 0;
    }
}