/**
 * Layout Styles for Legendlink PH
 * CSS Class Prefix: vd05-
 * Version: 1.0.0
 */

/* CSS Variables with prefix */
:root {
    --vd05-primary: #00FF7F;
    --vd05-secondary: #708090;
    --vd05-bg-dark: #3C3C3C;
    --vd05-bg-darker: #34495E;
    --vd05-text-light: #FFFFFF;
    --vd05-text-gray: #808080;
    --vd05-accent: #00FF7F;
    --vd05-gradient: linear-gradient(135deg, #3C3C3C 0%, #34495E 100%);
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--vd05-bg-dark);
    color: var(--vd05-text-light);
    line-height: 1.5rem;
    min-height: 100vh;
}

/* Container styles */
.vd05-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.vd05-wrapper {
    width: 100%;
    padding: 1rem;
}

/* Header styles */
.vd05-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #34495E 0%, #3C3C3C 100%);
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.vd05-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.vd05-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.vd05-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.vd05-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vd05-text-light);
}

.vd05-header-actions {
    display: flex;
    gap: 0.6rem;
}

.vd05-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.vd05-btn-primary {
    background: var(--vd05-primary);
    color: #000;
}

.vd05-btn-primary:hover {
    background: #00CC66;
    transform: translateY(-1px);
}

.vd05-btn-secondary {
    background: transparent;
    color: var(--vd05-text-light);
    border: 1px solid var(--vd05-secondary);
}

.vd05-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Menu toggle button */
.vd05-menu-toggle {
    background: none;
    border: none;
    color: var(--vd05-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile menu overlay */
.vd05-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: all 0.3s ease;
}

.vd05-overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Mobile menu */
.vd05-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--vd05-bg-darker);
    z-index: 9999;
    padding: 2rem 1.5rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.gamed17a-menu-active {
    right: 0;
}

.vd05-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vd05-menu-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vd05-primary);
}

.vd05-menu-close {
    background: none;
    border: none;
    color: var(--vd05-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.vd05-menu-list {
    list-style: none;
}

.vd05-menu-item {
    margin-bottom: 0.5rem;
}

.vd05-menu-link {
    display: block;
    padding: 1rem;
    color: var(--vd05-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vd05-menu-link:hover {
    background: rgba(0, 255, 127, 0.1);
    color: var(--vd05-primary);
}

/* Main content */
.vd05-main {
    padding-top: 60px;
    padding-bottom: 80px;
}

/* Hero/Slider section */
.vd05-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.vd05-slider {
    position: relative;
}

.vd05-slide {
    display: none;
    cursor: pointer;
}

.vd05-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.vd05-slide:first-child {
    display: block;
}

/* Section styles */
.vd05-section {
    padding: 1.5rem 0;
}

.vd05-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--vd05-text-light);
    text-align: center;
}

.vd05-section-subtitle {
    font-size: 1.3rem;
    color: var(--vd05-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.vd05-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.vd05-game-item:hover {
    transform: scale(1.05);
}

.vd05-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 0.4rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.vd05-game-item:hover .vd05-game-icon {
    border-color: var(--vd05-primary);
}

.vd05-game-name {
    font-size: 1rem;
    color: var(--vd05-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category section */
.vd05-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.vd05-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vd05-primary);
}

/* Card styles */
.vd05-card {
    background: var(--vd05-bg-darker);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.vd05-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--vd05-primary);
}

.vd05-card-text {
    font-size: 1.3rem;
    line-height: 1.8rem;
    color: var(--vd05-text-light);
}

/* Feature list */
.vd05-feature-list {
    list-style: none;
}

.vd05-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vd05-feature-icon {
    font-size: 2rem;
    color: var(--vd05-primary);
}

.vd05-feature-text {
    font-size: 1.3rem;
    color: var(--vd05-text-light);
}

/* Testimonials */
.vd05-testimonial {
    background: var(--vd05-bg-darker);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--vd05-primary);
}

.vd05-testimonial-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 0.8rem;
    color: var(--vd05-text-light);
}

.vd05-testimonial-author {
    font-size: 1.2rem;
    color: var(--vd05-secondary);
}

/* Footer styles */
.vd05-footer {
    background: var(--vd05-bg-darker);
    padding: 2rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vd05-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.vd05-footer-desc {
    font-size: 1.2rem;
    color: var(--vd05-secondary);
    line-height: 1.6rem;
    margin-bottom: 1rem;
}

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

.vd05-footer-link {
    color: var(--vd05-text-light);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.vd05-footer-link:hover {
    background: var(--vd05-primary);
    color: #000;
}

.vd05-footer-promo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.vd05-footer-promo .vd05-btn {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}

.vd05-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--vd05-text-gray);
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile bottom navigation */
.vd05-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #34495E 0%, #2C3E50 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    padding: 0 0.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.vd05-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--vd05-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 0.5rem;
}

.vd05-nav-btn:hover,
.vd05-nav-btn.active {
    color: var(--vd05-primary);
    transform: scale(1.1);
}

.vd05-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.vd05-nav-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .vd05-bottom-nav {
        display: none;
    }

    .vd05-main {
        padding-bottom: 2rem;
    }
}

/* Mobile padding for bottom nav */
@media (max-width: 768px) {
    .vd05-main {
        padding-bottom: 80px;
    }
}

/* Promotional link styles */
.vd05-promo-text {
    color: var(--vd05-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.vd05-promo-text:hover {
    color: #00CC66;
}

/* Grid layout */
.vd05-grid {
    display: grid;
    gap: 1rem;
}

.vd05-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.vd05-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* FAQ styles */
.vd05-faq-item {
    background: var(--vd05-bg-darker);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
}

.vd05-faq-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--vd05-primary);
    margin-bottom: 0.5rem;
}

.vd05-faq-answer {
    font-size: 1.2rem;
    color: var(--vd05-text-light);
    line-height: 1.6rem;
}

/* Utility classes */
.vd05-text-center {
    text-align: center;
}

.vd05-mb-1 {
    margin-bottom: 1rem;
}

.vd05-mb-2 {
    margin-bottom: 2rem;
}

.vd05-mt-1 {
    margin-top: 1rem;
}

.vd05-mt-2 {
    margin-top: 2rem;
}

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

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.vd05-animate {
    animation: fadeIn 0.5s ease forwards;
}
