/**
 * VIPSlot77 Theme CSS
 * Premium gaming platform for Filipino players
 * Mobile-first responsive design
 */

/* CSS Custom Properties - Color Palette */
:root {
    --v5cd-primary: #FAFAD2;
    --v5cd-secondary: #1A1A1A;
    --v5cd-accent: #880E4F;
    --v5cd-highlight: #FFCC33;
    --v5cd-text-primary: #333333;
    --v5cd-text-secondary: #666666;
    --v5cd-text-light: #FFFFFF;
    --v5cd-background: #FAFAFA;
    --v5cd-surface: #FFFFFF;
    --v5cd-border: #E0E0E0;
    --v5cd-shadow: rgba(0, 0, 0, 0.1);
    --v5cd-gradient-primary: linear-gradient(135deg, #FAFAD2 0%, #FFCC33 100%);
    --v5cd-gradient-secondary: linear-gradient(135deg, #880E4F 0%, #1A1A1A 100%);
    --v5cd-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --v5cd-border-radius: 8px;
    --v5cd-border-radius-large: 16px;
    --v5cd-spacing-xs: 4px;
    --v5cd-spacing-sm: 8px;
    --v5cd-spacing-md: 16px;
    --v5cd-spacing-lg: 24px;
    --v5cd-spacing-xl: 32px;
    --v5cd-spacing-xxl: 48px;
    --v5cd-max-width: 430px;
    --v5cd-header-height: 60px;
    --v5cd-bottom-nav-height: 64px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--v5cd-text-primary);
    background-color: var(--v5cd-background);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Main container */
.v5cd-container {
    max-width: var(--v5cd-max-width);
    margin: 0 auto;
    padding: 0 var(--v5cd-spacing-md);
}

/* Header Styles */
.v5cd-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--v5cd-header-height);
    background: var(--v5cd-gradient-secondary);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--v5cd-border);
}

.v5cd-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--v5cd-spacing-md);
    max-width: var(--v5cd-max-width);
    margin: 0 auto;
}

.v5cd-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--v5cd-primary);
    text-decoration: none;
    transition: var(--v5cd-transition);
}

.v5cd-logo:hover {
    color: var(--v5cd-highlight);
    transform: scale(1.05);
}

.v5cd-header-actions {
    display: flex;
    align-items: center;
    gap: var(--v5cd-spacing-sm);
}

.v5cd-register-btn,
.v5cd-login-btn {
    padding: var(--v5cd-spacing-sm) var(--v5cd-spacing-md);
    border: none;
    border-radius: var(--v5cd-border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--v5cd-transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v5cd-register-btn {
    background: var(--v5cd-gradient-primary);
    color: var(--v5cd-text-primary);
    box-shadow: 0 2px 8px var(--v5cd-shadow);
}

.v5cd-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--v5cd-shadow);
}

.v5cd-login-btn {
    background: transparent;
    color: var(--v5cd-primary);
    border: 2px solid var(--v5cd-primary);
}

.v5cd-login-btn:hover {
    background: var(--v5cd-primary);
    color: var(--v5cd-secondary);
}

.v5cd-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--v5cd-primary);
    font-size: 24px;
    cursor: pointer;
    padding: var(--v5cd-spacing-xs);
    transition: var(--v5cd-transition);
}

.v5cd-menu-toggle:hover {
    color: var(--v5cd-highlight);
    transform: rotate(90deg);
}

/* Mobile Menu */
.v5cd-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--v5cd-surface);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 8px var(--v5cd-shadow);
}

.v5cd-mobile-menu.active {
    right: 0;
}

.v5cd-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: var(--v5cd-transition);
}

.v5cd-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.v5cd-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--v5cd-spacing-md);
    background: var(--v5cd-gradient-secondary);
    color: var(--v5cd-primary);
}

.v5cd-menu-close {
    background: none;
    border: none;
    color: var(--v5cd-primary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--v5cd-transition);
}

.v5cd-menu-close:hover {
    color: var(--v5cd-highlight);
    transform: rotate(90deg);
}

.v5cd-menu-nav {
    padding: var(--v5cd-spacing-md);
}

.v5cd-menu-nav ul {
    list-style: none;
}

.v5cd-menu-nav li {
    margin-bottom: var(--v5cd-spacing-sm);
}

.v5cd-menu-nav a {
    display: block;
    padding: var(--v5cd-spacing-md);
    color: var(--v5cd-text-primary);
    text-decoration: none;
    border-radius: var(--v5cd-border-radius);
    transition: var(--v5cd-transition);
    font-weight: 500;
}

.v5cd-menu-nav a:hover {
    background: var(--v5cd-primary);
    color: var(--v5cd-secondary);
    transform: translateX(4px);
}

/* Main Content */
.v5cd-main {
    margin-top: var(--v5cd-header-height);
    min-height: calc(100vh - var(--v5cd-header-height) - var(--v5cd-bottom-nav-height));
}

@media (max-width: 768px) {
    .v5cd-main {
        padding-bottom: var(--v5cd-bottom-nav-height);
    }
}

/* Hero Section */
.v5cd-hero {
    position: relative;
    background: var(--v5cd-gradient-secondary);
    color: var(--v5cd-text-light);
    padding: var(--v5cd-spacing-xxl) 0;
    text-align: center;
    overflow: hidden;
}

.v5cd-hero-content {
    position: relative;
    z-index: 2;
}

.v5cd-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--v5cd-spacing-md);
    background: var(--v5cd-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v5cd-hero p {
    font-size: 1.1rem;
    margin-bottom: var(--v5cd-spacing-xl);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.v5cd-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--v5cd-spacing-md);
}

/* Carousel */
.v5cd-carousel {
    position: relative;
    margin: var(--v5cd-spacing-xl) 0;
    border-radius: var(--v5cd-border-radius-large);
    overflow: hidden;
    box-shadow: 0 8px 32px var(--v5cd-shadow);
}

.v5cd-carousel-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.v5cd-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.v5cd-carousel-slide.active {
    opacity: 1;
}

.v5cd-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v5cd-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--v5cd-spacing-lg);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--v5cd-text-light);
}

.v5cd-carousel-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--v5cd-spacing-xs);
}

.v5cd-carousel-description {
    font-size: 0.9rem;
    opacity: 0.9;
}

.v5cd-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--v5cd-spacing-xs);
    padding: var(--v5cd-spacing-md);
    background: var(--v5cd-surface);
}

.v5cd-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--v5cd-border);
    cursor: pointer;
    transition: var(--v5cd-transition);
}

.v5cd-carousel-indicator.active {
    background: var(--v5cd-accent);
    transform: scale(1.2);
}

/* Game Sections */
.v5cd-games {
    padding: var(--v5cd-spacing-xxl) 0;
}

.v5cd-games-header {
    text-align: center;
    margin-bottom: var(--v5cd-spacing-xl);
}

.v5cd-games-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v5cd-secondary);
    margin-bottom: var(--v5cd-spacing-md);
}

.v5cd-games-subtitle {
    font-size: 1.1rem;
    color: var(--v5cd-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.v5cd-game-filters {
    display: flex;
    justify-content: center;
    gap: var(--v5cd-spacing-sm);
    margin-bottom: var(--v5cd-spacing-xl);
    flex-wrap: wrap;
}

.v5cd-game-filter {
    padding: var(--v5cd-spacing-sm) var(--v5cd-spacing-md);
    border: 2px solid var(--v5cd-border);
    background: var(--v5cd-surface);
    color: var(--v5cd-text-secondary);
    border-radius: var(--v5cd-border-radius);
    cursor: pointer;
    transition: var(--v5cd-transition);
    font-weight: 500;
    text-transform: capitalize;
}

.v5cd-game-filter:hover {
    border-color: var(--v5cd-accent);
    color: var(--v5cd-accent);
    transform: translateY(-2px);
}

.v5cd-game-filter.active {
    background: var(--v5cd-gradient-secondary);
    color: var(--v5cd-primary);
    border-color: var(--v5cd-accent);
}

.v5cd-games-section {
    margin-bottom: var(--v5cd-spacing-xxl);
}

.v5cd-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--v5cd-spacing-md);
    margin-bottom: var(--v5cd-spacing-xl);
}

.v5cd-game-card {
    background: var(--v5cd-surface);
    border-radius: var(--v5cd-border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--v5cd-shadow);
    transition: var(--v5cd-transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.v5cd-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--v5cd-shadow);
}

.v5cd-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: var(--v5cd-transition);
}

.v5cd-game-card:hover .v5cd-game-image {
    transform: scale(1.05);
}

.v5cd-game-info {
    padding: var(--v5cd-spacing-md);
    text-align: center;
}

.v5cd-game-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--v5cd-text-primary);
    margin-bottom: var(--v5cd-spacing-xs);
}

.v5cd-game-category {
    font-size: 0.8rem;
    color: var(--v5cd-text-secondary);
    text-transform: capitalize;
}

/* Content Sections */
.v5cd-section {
    padding: var(--v5cd-spacing-xxl) 0;
}

.v5cd-section-header {
    text-align: center;
    margin-bottom: var(--v5cd-spacing-xl);
}

.v5cd-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v5cd-secondary);
    margin-bottom: var(--v5cd-spacing-md);
}

.v5cd-section-description {
    font-size: 1.1rem;
    color: var(--v5cd-text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.v5cd-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--v5cd-spacing-xl);
    margin-top: var(--v5cd-spacing-xl);
}

.v5cd-content-card {
    background: var(--v5cd-surface);
    padding: var(--v5cd-spacing-xl);
    border-radius: var(--v5cd-border-radius-large);
    box-shadow: 0 4px 16px var(--v5cd-shadow);
    transition: var(--v5cd-transition);
}

.v5cd-content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--v5cd-shadow);
}

.v5cd-content-icon {
    width: 48px;
    height: 48px;
    background: var(--v5cd-gradient-primary);
    border-radius: var(--v5cd-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--v5cd-spacing-md);
    font-size: 24px;
    color: var(--v5cd-secondary);
}

.v5cd-content-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--v5cd-secondary);
    margin-bottom: var(--v5cd-spacing-sm);
}

.v5cd-content-text {
    color: var(--v5cd-text-secondary);
    line-height: 1.6;
}

/* Partners Section */
.v5cd-partners {
    background: var(--v5cd-surface);
    padding: var(--v5cd-spacing-xl) 0;
    text-align: center;
}

.v5cd-partners-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--v5cd-text-secondary);
    margin-bottom: var(--v5cd-spacing-xl);
}

.v5cd-partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--v5cd-spacing-lg);
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.v5cd-partner-logo {
    height: 40px;
    opacity: 0.7;
    transition: var(--v5cd-transition);
    filter: grayscale(100%);
}

.v5cd-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Footer */
.v5cd-footer {
    background: var(--v5cd-gradient-secondary);
    color: var(--v5cd-text-light);
    padding: var(--v5cd-spacing-xxl) 0 var(--v5cd-spacing-md);
    text-align: center;
}

.v5cd-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--v5cd-spacing-xl);
    margin-bottom: var(--v5cd-spacing-xl);
    text-align: left;
}

.v5cd-footer-section h3 {
    color: var(--v5cd-primary);
    margin-bottom: var(--v5cd-spacing-md);
    font-size: 1.1rem;
}

.v5cd-footer-section ul {
    list-style: none;
}

.v5cd-footer-section li {
    margin-bottom: var(--v5cd-spacing-xs);
}

.v5cd-footer-section a {
    color: var(--v5cd-text-light);
    text-decoration: none;
    transition: var(--v5cd-transition);
    opacity: 0.8;
}

.v5cd-footer-section a:hover {
    color: var(--v5cd-primary);
    opacity: 1;
}

.v5cd-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--v5cd-spacing-md);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Bottom Navigation */
.v5cd-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--v5cd-bottom-nav-height);
    background: var(--v5cd-gradient-secondary);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--v5cd-border);
    z-index: 1000;
    display: none;
}

@media (max-width: 768px) {
    .v5cd-bottom-nav {
        display: block;
    }
}

.v5cd-bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    max-width: var(--v5cd-max-width);
    margin: 0 auto;
}

.v5cd-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--v5cd-text-secondary);
    transition: var(--v5cd-transition);
    cursor: pointer;
    border: none;
    background: none;
}

.v5cd-bottom-nav-item:hover {
    color: var(--v5cd-primary);
    transform: translateY(-2px);
}

.v5cd-bottom-nav-item.active {
    color: var(--v5cd-highlight);
}

.v5cd-bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
    transition: var(--v5cd-transition);
}

.v5cd-bottom-nav-item:hover .v5cd-bottom-nav-icon {
    transform: scale(1.1);
}

.v5cd-bottom-nav-label {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

/* Scroll to Top Button */
.v5cd-scroll-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: var(--v5cd-gradient-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--v5cd-transition);
    z-index: 999;
    box-shadow: 0 4px 16px var(--v5cd-shadow);
}

.v5cd-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.v5cd-scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--v5cd-shadow);
}

.v5cd-scroll-top i {
    color: var(--v5cd-secondary);
    font-size: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .v5cd-menu-toggle {
        display: block;
    }

    .v5cd-header-actions {
        display: none;
    }

    .v5cd-hero h1 {
        font-size: 2rem;
    }

    .v5cd-hero p {
        font-size: 1rem;
    }

    .v5cd-carousel-container {
        height: 150px;
    }

    .v5cd-games-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: var(--v5cd-spacing-sm);
    }

    .v5cd-game-image {
        height: 100px;
    }

    .v5cd-content-grid {
        grid-template-columns: 1fr;
        gap: var(--v5cd-spacing-lg);
    }

    .v5cd-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .v5cd-partners-grid {
        gap: var(--v5cd-spacing-md);
    }

    .v5cd-partner-logo {
        height: 30px;
    }
}

@media (max-width: 480px) {
    :root {
        --v5cd-spacing-md: 12px;
        --v5cd-spacing-lg: 20px;
        --v5cd-spacing-xl: 24px;
        --v5cd-spacing-xxl: 32px;
    }

    .v5cd-hero h1 {
        font-size: 1.8rem;
    }

    .v5cd-games-title,
    .v5cd-section-title {
        font-size: 1.5rem;
    }

    .v5cd-game-filters {
        gap: var(--v5cd-spacing-xs);
    }

    .v5cd-game-filter {
        padding: var(--v5cd-spacing-xs) var(--v5cd-spacing-sm);
        font-size: 13px;
    }

    .v5cd-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v5cd-game-image {
        height: 90px;
    }
}

/* Animation Classes */
.v5cd-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--v5cd-transition);
}

.v5cd-fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.v5cd-slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--v5cd-transition);
}

.v5cd-slide-up.active {
    opacity: 1;
    transform: translateY(0);
}

.v5cd-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: var(--v5cd-transition);
}

.v5cd-scale-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Utility Classes */
.v5cd-text-center { text-align: center; }
.v5cd-text-left { text-align: left; }
.v5cd-text-right { text-align: right; }
.v5cd-text-primary { color: var(--v5cd-text-primary); }
.v5cd-text-secondary { color: var(--v5cd-text-secondary); }
.v5cd-text-accent { color: var(--v5cd-accent); }
.v5cd-text-highlight { color: var(--v5cd-highlight); }

.v5cd-bg-primary { background-color: var(--v5cd-primary); }
.v5cd-bg-secondary { background-color: var(--v5cd-secondary); }
.v5cd-bg-accent { background-color: var(--v5cd-accent); }
.v5cd-bg-highlight { background-color: var(--v5cd-highlight); }

.v5cd-mb-xs { margin-bottom: var(--v5cd-spacing-xs); }
.v5cd-mb-sm { margin-bottom: var(--v5cd-spacing-sm); }
.v5cd-mb-md { margin-bottom: var(--v5cd-spacing-md); }
.v5cd-mb-lg { margin-bottom: var(--v5cd-spacing-lg); }
.v5cd-mb-xl { margin-bottom: var(--v5cd-spacing-xl); }

.v5cd-mt-xs { margin-top: var(--v5cd-spacing-xs); }
.v5cd-mt-sm { margin-top: var(--v5cd-spacing-sm); }
.v5cd-mt-md { margin-top: var(--v5cd-spacing-md); }
.v5cd-mt-lg { margin-top: var(--v5cd-spacing-lg); }
.v5cd-mt-xl { margin-top: var(--v5cd-spacing-xl); }

.v5cd-p-xs { padding: var(--v5cd-spacing-xs); }
.v5cd-p-sm { padding: var(--v5cd-spacing-sm); }
.v5cd-p-md { padding: var(--v5cd-spacing-md); }
.v5cd-p-lg { padding: var(--v5cd-spacing-lg); }
.v5cd-p-xl { padding: var(--v5cd-spacing-xl); }

.v5cd-hidden { display: none; }
.v5cd-visible { display: block; }
.v5cd-invisible { visibility: hidden; }

/* Print Styles */
@media print {
    .v5cd-header,
    .v5cd-bottom-nav,
    .v5cd-scroll-top,
    .v5cd-mobile-menu,
    .v5cd-menu-overlay {
        display: none !important;
    }

    .v5cd-main {
        margin-top: 0;
        padding-bottom: 0;
    }

    body {
        background: white;
        color: black;
    }
}