/* ─── Fast2DL Custom Styles ────────────────────────────────────────────────── */

/* ─── Base ─────────────────────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Google Translate Fix ─────────────────────────────────────────────────── */
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
}

.goog-te-menu-frame {
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.goog-te-combo {
    width: 220px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
}

body {
    top: 0 !important;
}

/* ─── Gradient Text ────────────────────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(to right, #9333ea, #ec4899, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Tab Active ───────────────────────────────────────────────────────────── */
.tab-active {
    background: white;
    color: #9333ea;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.tab-inactive {
    background: rgba(255,255,255,0.2);
    color: white;
}

.tab-inactive:hover {
    background: rgba(255,255,255,0.3);
}

/* ─── FAQ Accordion ────────────────────────────────────────────────────────── */
details > summary {
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

details[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-chevron {
    transition: transform 0.3s ease;
}

/* ─── Progress Bar ─────────────────────────────────────────────────────────── */
.progress-bar {
    background: linear-gradient(to right, #9333ea, #ec4899);
    transition: width 0.3s ease;
    border-radius: 9999px;
    height: 10px;
}

/* ─── Loading Spinner ──────────────────────────────────────────────────────── */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ─── Download Card ────────────────────────────────────────────────────────── */
.download-card {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Toast Notification ───────────────────────────────────────────────────── */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s;
    max-width: 400px;
}

.toast-success {
    background: #16a34a;
}

.toast-error {
    background: #dc2626;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ─── Blog Card Hover ──────────────────────────────────────────────────────── */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.blog-card img {
    transition: transform 0.6s ease;
}

.blog-card:hover img {
    transform: scale(1.1);
}

/* ─── Admin Panel ──────────────────────────────────────────────────────────── */
.admin-sidebar {
    min-height: 100vh;
    width: 250px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
}

.admin-content {
    margin-left: 250px;
    padding: 2rem;
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        position: relative;
    }
    .admin-content {
        margin-left: 0;
    }
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* ─── Hover Scale ──────────────────────────────────────────────────────────── */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* ─── Skeleton Loading ─────────────────────────────────────────────────────── */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}
