/* Vietnamese Games Page Styles */

/* Page Content */
.vietnamese-page-content {
    min-height: 100vh;
    padding: 100px 60px 60px;
    background: var(--color-bg, #0a0a0a);
}

/* Launcher mode adjustments */
body.launcher-mode .vietnamese-page-content {
    padding: 20px 60px 60px;
}

/* Page Title Section */
.page-title-section {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    color: #f0f0f0;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.title-flag {
    font-size: 42px;
}

.page-subtitle {
    font-size: 16px;
    color: #888;
    margin: 0;
}

/* Games Grid */
.vietnamese-games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Override home styles - Game Card in Grid */
.vietnamese-games-grid .game-card {
    flex: none !important;
    max-width: none !important;
    width: 100% !important;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.vietnamese-games-grid .game-card:hover {
    transform: translateY(-8px);
}

.vietnamese-games-grid .game-card-image-container {
    position: relative;
    width: 100% !important;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
}

.vietnamese-games-grid .game-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vietnamese-games-grid .game-card:hover .game-card-image {
    transform: scale(1.05);
}

.vietnamese-games-grid .game-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    border-radius: 8px;
    filter: blur(20px);
    transform: scale(1.1) translateY(10px);
    transition: opacity 0.3s ease;
}

.vietnamese-games-grid .game-card:hover .game-card-glow {
    opacity: 0.5;
}

.vietnamese-games-grid .game-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: white;
}

.vietnamese-games-grid .game-card-badge.free {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.vietnamese-games-grid .game-card-badge.vietnamese {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.vietnamese-games-grid .game-card-info {
    padding: 10px 0 0;
}

.vietnamese-games-grid .game-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #f0f0f0;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive grid */
@media (max-width: 1400px) {
    .vietnamese-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .vietnamese-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .vietnamese-games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Active nav link - uses white instead of red */
.nav-link.active {
    color: #ffffff !important;
}

/* Header background - apply scrolled state by default for pages without hero */
.vietnamese-page-content~.main-header,
body:has(.vietnamese-page-content) .main-header {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Logo always white on Vietnamese page (dark header background) */
body:has(.vietnamese-page-content) .logo-img {
    filter: brightness(0) invert(1);
}

/* Launcher mode adjustments */
body.launcher-mode .page-title-section {
    margin-bottom: 12px;
    padding: 0 10px;
}

body.launcher-mode .page-title {
    font-size: 20px;
}

body.launcher-mode .page-title-section {
    display: none;
}

body.launcher-mode .page-title {
    font-size: 20px;
    display: none;
}

body.launcher-mode .page-subtitle {
    display: none;
}

body.launcher-mode .vietnamese-games-grid .game-card-image-container {
    border-radius: 4px;
}

body.launcher-mode .vietnamese-games-grid .game-card-glow {
    border-radius: 4px;
}

/* ========== LAUNCHER MODE SCALING ========== */
/* Scale down content aggressively for launcher window */

body.launcher-mode .vietnamese-page-content {
    padding: 12px 10px 20px;
    min-height: auto;
}

/* More columns for launcher - compact cards */
body.launcher-mode .vietnamese-games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    max-width: none;
}

/* Smaller card title in launcher */
body.launcher-mode .vietnamese-games-grid .game-card-title {
    font-size: 11px;
    line-height: 1.3;
}

body.launcher-mode .vietnamese-games-grid .game-card-info {
    padding: 6px 0 0;
}

/* Smaller badge in launcher */
body.launcher-mode .vietnamese-games-grid .game-card-badge {
    font-size: 8px;
    padding: 3px 6px;
    top: 6px;
    left: 6px;
    border-radius: 3px;
}

/* Reduce hover effect in launcher */
body.launcher-mode .vietnamese-games-grid .game-card:hover {
    transform: translateY(-4px);
}

body.launcher-mode .vietnamese-games-grid .game-card:hover .game-card-image {
    transform: scale(1.03);
}

/* Hide animated background section in launcher to save space */
body.launcher-mode .animated-bg-section {
    display: none;
}

/* Hide footer in launcher */
body.launcher-mode .footer {
    display: none;
}

/* Hide header in launcher (handled by C# header) */
body.launcher-mode .main-header {
    display: none;
}

/* Responsive grid in launcher mode */
/* Scale UP for larger screens */
@media (min-width: 1400px) {
    body.launcher-mode .vietnamese-games-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (min-width: 1600px) {
    body.launcher-mode .vietnamese-games-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 1800px) {
    body.launcher-mode .vietnamese-games-grid {
        grid-template-columns: repeat(9, 1fr);
    }
}

@media (min-width: 2000px) {
    body.launcher-mode .vietnamese-games-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

/* Scale DOWN for smaller screens */
@media (max-width: 1200px) {
    body.launcher-mode .vietnamese-games-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    body.launcher-mode .vietnamese-games-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    body.launcher-mode .vietnamese-games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}