/* ── Home Page Styles ── */

/* ── Clean Background (NativePHP Inspired) ── */
.VPDoc {
    background: linear-gradient(to bottom, #fafafa, #ffffff);
    position: relative;
}

.dark .VPDoc {
    background: linear-gradient(to bottom, #111827, #1f2937);
}

/* ── Floating Animation ── */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-5deg);
    }

    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* ── Tab System ── */
.code-tab,
.eco-tab,
.monitor-tab {
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.code-tab.active,
.eco-tab.active,
.monitor-tab.active {
    border-bottom-color: #7c3aed !important;
    color: #7c3aed !important;
    font-weight: 500 !important;
}

/* Enhanced hover effects */
.code-tab:hover,
.eco-tab:hover,
.monitor-tab:hover {
    color: #6d28d9 !important;
}

.dark .code-tab:hover,
.dark .eco-tab:hover,
.dark .monitor-tab:hover {
    color: #a78bfa !important;
}

/* Dark mode active state */
.dark .code-tab.active,
.dark .eco-tab.active,
.dark .monitor-tab.active {
    border-bottom-color: #a78bfa !important;
    color: #a78bfa !important;
}

/* ── Panel System ── */
.code-panel,
.eco-panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.code-panel.active,
.eco-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.4s ease;
}

/* ── Feature Items ── */
.feature-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-item.active {
    background: linear-gradient(135deg, #efecff 0%, #f3f2ff 100%);
    border-color: #5b45e0;
    color: #5b45e0;
}

.dark .feature-item.active {
    background: linear-gradient(135deg, #1a1a2e 0%, #18181b 100%);
    border-color: #7c66f5;
    color: #7c66f5;
}

/* ── Code Variants ── */
.code-variant {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.code-variant.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes animateGradient {
    0%, 100% {
        background-size: 200% 200%;
        background-position: left center;
    }
    50% {
        background-size: 200% 200%;
        background-position: right center;
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-gradient {
    background-size: 200% 200%;
    background-position: left center;
    animation: animateGradient 3s ease infinite;
}

.animate-twinkle {
    animation: twinkle 2s ease-in-out infinite;
}

/* ── Responsive Design ── */
@media (max-width: 768px) {

    .code-tab,
    .eco-tab {
        font-size: 11px;
        padding: 8px 12px;
    }

    .code-panel,
    .eco-panel {
        padding: 16px;
    }
}