/* Layout CSS for ph88-click - Mobile First Design */
/* All classes use vdb8- prefix to avoid conflicts */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 10px base for rem calculations */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--vdb8-text);
    background-color: var(--vdb8-bg);
    overflow-x: hidden;
}

/* CSS Variables */
:root {
    --vdb8-primary: #FF1493;    /* Deep Pink */
    --vdb8-secondary: #FF69B4;  /* Hot Pink */
    --vdb8-accent: #BAE1FF;     /* Light Blue */
    --vdb8-light: #E0FFFF;      /* Light Cyan */
    --vdb8-dark: #2C3E50;       /* Dark Blue Gray */
    
    --vdb8-bg: #2C3E50;
    --vdb8-surface: #34495e;
    --vdb8-text: #E0FFFF;
    --vdb8-text-muted: #BAE1FF;
    --vdb8-border: #FF69B4;
    
    --vdb8-gradient-1: linear-gradient(135deg, var(--vdb8-primary), var(--vdb8-secondary));
    --vdb8-gradient-2: linear-gradient(135deg, var(--vdb8-dark), var(--vdb8-surface));
    
    --vdb8-shadow: 0 2px 10px rgba(255, 20, 147, 0.1);
    --vdb8-shadow-hover: 0 5px 20px rgba(255, 20, 147, 0.2);
    
    --vdb8-border-radius: 0.8rem;
    --vdb8-transition: all 0.3s ease;
}

/* Container and layout */
.vdb8-container {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.vdb8-wrapper {
    min-height: 100vh;
    padding-bottom: 6.4rem; /* Space for bottom nav */
}

.vdb8-grid {
    display: grid;
    gap: 1.5rem;
}

.vdb8-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vdb8-text-center {
    text-align: center;
}

.vdb8-hidden {
    display: none !important;
}

.vdb8-show {
    display: block !important;
}

/* Header and Navigation */
.vdb8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--vdb8-gradient-1);
    box-shadow: var(--vdb8-shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.vdb8-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.vdb8-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--vdb8-light);
    font-weight: 700;
    font-size: 1.8rem;
}

.vdb8-logo-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 0.4rem;
}

.vdb8-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vdb8-menu-toggle {
    background: none;
    border: none;
    color: var(--vdb8-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.4rem;
    transition: var(--vdb8-transition);
}

.vdb8-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.vdb8-mobile-menu {
    position: fixed;
    top: 7rem;
    left: 0;
    right: 0;
    background: var(--vdb8-dark);
    box-shadow: var(--vdb8-shadow);
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--vdb8-transition);
}

.vdb8-mobile-menu.vdb8-show {
    transform: translateY(0);
    opacity: 1;
}

.vdb8-nav-list {
    list-style: none;
    padding: 1.5rem;
}

.vdb8-nav-item {
    margin-bottom: 0.5rem;
}

.vdb8-nav-link {
    display: block;
    padding: 1rem;
    color: var(--vdb8-text);
    text-decoration: none;
    border-radius: var(--vdb8-border-radius);
    transition: var(--vdb8-transition);
}

.vdb8-nav-link:hover {
    background: var(--vdb8-primary);
    color: var(--vdb8-light);
}

/* Buttons */
.vdb8-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--vdb8-border-radius);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--vdb8-transition);
    min-height: 4.4rem; /* Touch friendly */
    text-align: center;
}

.vdb8-btn-primary {
    background: var(--vdb8-gradient-1);
    color: var(--vdb8-light);
    box-shadow: var(--vdb8-shadow);
}

.vdb8-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--vdb8-shadow-hover);
}

.vdb8-btn-secondary {
    background: transparent;
    color: var(--vdb8-primary);
    border: 2px solid var(--vdb8-primary);
}

.vdb8-btn-secondary:hover {
    background: var(--vdb8-primary);
    color: var(--vdb8-light);
}

.vdb8-btn-small {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    min-height: 3.6rem;
}

.vdb8-btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.6rem;
    min-height: 5.2rem;
}

/* Cards and Content Sections */
.vdb8-card {
    background: var(--vdb8-surface);
    border-radius: var(--vdb8-border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--vdb8-shadow);
    border: 1px solid rgba(255, 105, 180, 0.2);
}

.vdb8-card-header {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vdb8-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.vdb8-card-content {
    color: var(--vdb8-text);
    line-height: 1.6;
}

/* Game Grid */
.vdb8-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.vdb8-game-item {
    background: var(--vdb8-surface);
    border-radius: var(--vdb8-border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--vdb8-transition);
    border: 2px solid transparent;
}

.vdb8-game-item:hover {
    transform: translateY(-3px);
    border-color: var(--vdb8-primary);
    box-shadow: var(--vdb8-shadow-hover);
}

.vdb8-game-icon {
    width: 100%;
    max-width: 6rem;
    height: 6rem;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 0.8rem;
}

.vdb8-game-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--vdb8-text);
    line-height: 1.3;
}

/* Carousel */
.vdb8-carousel {
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--vdb8-border-radius);
    overflow: hidden;
}

.vdb8-carousel-item {
    position: relative;
    cursor: pointer;
}

.vdb8-carousel-image {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.vdb8-carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(44, 62, 80, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.vdb8-carousel-content {
    color: var(--vdb8-light);
}

.vdb8-carousel-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Bottom Navigation */
.vdb8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--vdb8-gradient-2);
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 0;
    border-top: 1px solid var(--vdb8-border);
    z-index: 1000;
    height: 6.4rem;
}

.vdb8-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--vdb8-text-muted);
    font-size: 1rem;
    font-weight: 500;
    transition: var(--vdb8-transition);
    padding: 0.5rem;
    border-radius: 0.8rem;
    min-width: 4.4rem; /* Touch friendly */
}

.vdb8-bottom-nav-item:hover,
.vdb8-bottom-nav-item.vdb8-active {
    color: var(--vdb8-primary);
    background: rgba(255, 20, 147, 0.1);
}

.vdb8-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
}

.vdb8-bottom-nav-label {
    font-size: 1rem;
    line-height: 1.2;
}

/* Main Content */
.vdb8-main {
    margin-top: 7rem;
    margin-bottom: 2rem;
    min-height: calc(100vh - 9rem);
}

/* Footer */
.vdb8-footer {
    background: var(--vdb8-dark);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--vdb8-border);
}

.vdb8-footer-content {
    max-width: 43rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.vdb8-footer-title {
    color: var(--vdb8-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.vdb8-footer-text {
    color: var(--vdb8-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.vdb8-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.vdb8-footer-link {
    color: var(--vdb8-text);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--vdb8-transition);
}

.vdb8-footer-link:hover {
    color: var(--vdb8-primary);
}

.vdb8-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.vdb8-partner-icon {
    width: 4rem;
    height: 4rem;
    opacity: 0.6;
    transition: var(--vdb8-transition);
}

.vdb8-partner-icon:hover {
    opacity: 1;
}

.vdb8-copyright {
    color: var(--vdb8-text-muted);
    font-size: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 105, 180, 0.2);
}

/* Animations */
.vdb8-animate-on-scroll {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.6s ease;
}

.vdb8-animate-on-scroll.vdb8-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading */
.vdb8-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--vdb8-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Responsive adjustments */
@media (max-width: 36rem) {
    .vdb8-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .vdb8-game-icon {
        height: 5rem;
    }
    
    .vdb8-bottom-nav-icon {
        font-size: 2rem;
    }
}

/* Utility classes */
.vdb8-mt-1 { margin-top: 1rem; }
.vdb8-mt-2 { margin-top: 2rem; }
.vdb8-mb-1 { margin-bottom: 1rem; }
.vdb8-mb-2 { margin-bottom: 2rem; }
.vdb8-p-1 { padding: 1rem; }
.vdb8-p-2 { padding: 2rem; }

/* Link styles */
a {
    color: var(--vdb8-primary);
    text-decoration: none;
    transition: var(--vdb8-transition);
}

a:hover {
    color: var(--vdb8-secondary);
}