/**
 * PH375 Website CSS Design
 * All classes use prefix 'vcf3-' for namespace isolation
 * @version 1.0.0
 */

/* CSS Variables */
:root {
    --vcf3-primary: #000080;
    --vcf3-secondary: #B2DFDB;
    --vcf3-accent: #F5DEB3;
    --vcf3-bg-dark: #0A0A0A;
    --vcf3-bg-light: #F8F9FA;
    --vcf3-text-light: #F0F8FF;
    --vcf3-text-dark: #0A0A0A;
    --vcf3-border: rgba(255,255,255,0.1);
    --vcf3-shadow: 0 4px 20px rgba(0,0,0,0.3);
    --vcf3-radius: 12px;
    --vcf3-transition: all 0.3s ease;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--vcf3-bg-dark);
    color: var(--vcf3-text-light);
    line-height: 1.5;
    min-height: 100vh;
}

/* Container */
.vcf3-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.vcf3-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--vcf3-primary) 0%, #00004d 100%);
    padding: 12px 16px;
    box-shadow: var(--vcf3-shadow);
}

.vcf3-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.vcf3-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.vcf3-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.vcf3-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vcf3-text-light);
}

.vcf3-header-btns {
    display: flex;
    gap: 8px;
}

.vcf3-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vcf3-transition);
    border: none;
    text-align: center;
}

.vcf3-btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

.vcf3-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255,215,0,0.4);
}

.vcf3-btn-secondary {
    background: transparent;
    border: 2px solid var(--vcf3-secondary);
    color: var(--vcf3-secondary);
}

.vcf3-btn-secondary:hover {
    background: var(--vcf3-secondary);
    color: var(--vcf3-primary);
}

.vcf3-menu-toggle {
    background: transparent;
    border: none;
    color: var(--vcf3-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 4px;
}

/* Mobile Menu */
.vcf3-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--vcf3-primary) 0%, var(--vcf3-bg-dark) 100%);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.vcf3-menu-open {
    right: 0;
}

.vcf3-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: var(--vcf3-transition);
}

.vcf3-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.vcf3-nav-list {
    list-style: none;
}

.vcf3-nav-item {
    margin-bottom: 8px;
}

.vcf3-nav-link {
    display: block;
    padding: 12px 16px;
    color: var(--vcf3-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: 8px;
    transition: var(--vcf3-transition);
}

.vcf3-nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--vcf3-accent);
}

/* Main Content */
.vcf3-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

@media (min-width: 769px) {
    .vcf3-main {
        padding-bottom: 40px;
    }
}

/* Carousel */
.vcf3-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--vcf3-radius);
    margin: 16px 0;
}

.vcf3-slides-wrapper {
    overflow: hidden;
}

.vcf3-slides-container {
    display: flex;
    transition: transform 0.5s ease;
}

.vcf3-slide {
    min-width: 100%;
    cursor: pointer;
}

.vcf3-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--vcf3-radius);
}

.vcf3-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.vcf3-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--vcf3-transition);
}

.vcf3-dot-active {
    background: var(--vcf3-accent);
}

/* Section */
.vcf3-section {
    padding: 24px 0;
}

.vcf3-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vcf3-accent);
    margin-bottom: 16px;
    text-align: center;
}

.vcf3-section-subtitle {
    font-size: 1.4rem;
    color: var(--vcf3-secondary);
    text-align: center;
    margin-bottom: 20px;
}

/* Game Grid */
.vcf3-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.vcf3-game-item {
    text-align: center;
    cursor: pointer;
    transition: var(--vcf3-transition);
}

.vcf3-game-item:hover {
    transform: translateY(-4px);
}

.vcf3-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.vcf3-game-name {
    font-size: 1.1rem;
    color: var(--vcf3-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Section */
.vcf3-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--vcf3-secondary);
    margin: 20px 0 12px;
    padding-left: 8px;
    border-left: 3px solid var(--vcf3-accent);
}

/* Info Card */
.vcf3-card {
    background: linear-gradient(135deg, rgba(0,0,128,0.3) 0%, rgba(10,10,10,0.5) 100%);
    border-radius: var(--vcf3-radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--vcf3-border);
}

.vcf3-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--vcf3-accent);
    margin-bottom: 12px;
}

.vcf3-card-text {
    font-size: 1.3rem;
    color: var(--vcf3-text-light);
    line-height: 1.6;
}

/* Features List */
.vcf3-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vcf3-feature-item {
    background: rgba(178,223,219,0.1);
    padding: 16px;
    border-radius: 10px;
    text-align: center;
}

.vcf3-feature-icon {
    font-size: 2.4rem;
    color: var(--vcf3-accent);
    margin-bottom: 8px;
}

.vcf3-feature-text {
    font-size: 1.2rem;
    color: var(--vcf3-text-light);
}

/* Footer */
.vcf3-footer {
    background: linear-gradient(180deg, var(--vcf3-primary) 0%, var(--vcf3-bg-dark) 100%);
    padding: 30px 16px 80px;
    border-top: 1px solid var(--vcf3-border);
}

@media (min-width: 769px) {
    .vcf3-footer {
        padding-bottom: 30px;
    }
}

.vcf3-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.vcf3-footer-link {
    color: var(--vcf3-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--vcf3-transition);
}

.vcf3-footer-link:hover {
    color: var(--vcf3-accent);
}

.vcf3-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.vcf3-partner-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    opacity: 0.7;
    transition: var(--vcf3-transition);
}

.vcf3-partner-logo:hover {
    opacity: 1;
}

.vcf3-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
}

/* Bottom Navigation */
.vcf3-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(135deg, var(--vcf3-primary) 0%, #00004d 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    border-top: 1px solid var(--vcf3-border);
}

@media (min-width: 769px) {
    .vcf3-bottom-nav {
        display: none;
    }
}

.vcf3-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(--vcf3-text-light);
    cursor: pointer;
    transition: var(--vcf3-transition);
    border-radius: 12px;
}

.vcf3-nav-btn:hover,
.vcf3-nav-btn-active {
    color: var(--vcf3-accent);
    background: rgba(255,255,255,0.1);
}

.vcf3-nav-btn-icon {
    font-size: 2.4rem;
    margin-bottom: 2px;
}

.vcf3-nav-btn-text {
    font-size: 1rem;
}

/* Promo Link */
.vcf3-promo-link {
    color: var(--vcf3-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--vcf3-transition);
}

.vcf3-promo-link:hover {
    color: var(--vcf3-secondary);
    text-decoration: underline;
}

/* List Styles */
.vcf3-list {
    list-style: none;
    padding: 0;
}

.vcf3-list-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--vcf3-border);
    font-size: 1.3rem;
}

.vcf3-list-item:last-child {
    border-bottom: none;
}

/* RTP Table */
.vcf3-rtp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
}

.vcf3-rtp-table th,
.vcf3-rtp-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--vcf3-border);
}

.vcf3-rtp-table th {
    color: var(--vcf3-accent);
    font-weight: 600;
}

.vcf3-rtp-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.vcf3-rtp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--vcf3-secondary) 0%, var(--vcf3-accent) 100%);
    border-radius: 4px;
}

/* Utility */
.vcf3-text-center { text-align: center; }
.vcf3-mt-20 { margin-top: 20px; }
.vcf3-mb-20 { margin-bottom: 20px; }
.vcf3-hidden { display: none; }

/* Animation */
@keyframes vcf3-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.vcf3-animate-pulse {
    animation: vcf3-pulse 2s infinite;
}

/* Responsive */
@media (max-width: 430px) {
    .vcf3-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .vcf3-game-name {
        font-size: 1rem;
    }
}
