﻿@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100;200;300;400;500;600;700;800&family=Fira+Code:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-white: #FFFFFF;
    --soft-gray: #1A1A1A;
    --medium-gray: #9CA3AF;
    --dark-gray: #111111;
    --accent-violet: #8B63FF;
    --accent-cyan: #00F5FF;
    --accent-emerald: #00D4A3;
    --accent-coral: #FF6B6B;
    --void-black: #000000;
}

body {
    font-family: 'Sora', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: var(--primary-white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Animated light rays */
.light-rays {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ray {
    position: absolute;
    width: 2px;
    height: 40%;
    background: linear-gradient(to bottom, rgba(139, 99, 255, 0.4), rgba(139, 99, 255, 0.1), transparent);
    transform-origin: top center;
    animation: rayRotate 20s linear infinite;
}

    .ray:nth-child(1) {
        top: 20%;
        left: 20%;
        animation-delay: 0s;
    }

    .ray:nth-child(2) {
        top: 30%;
        right: 25%;
        animation-delay: -5s;
    }

    .ray:nth-child(3) {
        top: 15%;
        left: 60%;
        animation-delay: -10s;
    }

    .ray:nth-child(4) {
        top: 40%;
        right: 40%;
        animation-delay: -15s;
    }

@keyframes rayRotate {
    0% {
        transform: rotate(0deg) scaleY(0.5);
        opacity: 0.3;
    }

    50% {
        transform: rotate(180deg) scaleY(1);
        opacity: 0.8;
    }

    100% {
        transform: rotate(360deg) scaleY(0.5);
        opacity: 0.3;
    }
}

/* Main container */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Minimalist header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 2rem;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 99, 255, 0.3);
    z-index: 50;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-mark {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-violet);
    letter-spacing: -0.5px;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 99, 255, 0.1);
    border: 1px solid rgba(139, 99, 255, 0.2);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-violet);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-emerald);
    border-radius: 50%;
    animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Hero section */
.hero-section {
    text-align: center;
    margin: 8rem 0 6rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: rgba(139, 99, 255, 0.1);
    border: 1px solid rgba(139, 99, 255, 0.3);
    border-radius: 25px;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-violet);
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(139, 99, 255, 0.2);
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(139, 99, 255, 0.2);
    }

    50% {
        box-shadow: 0 4px 30px rgba(139, 99, 255, 0.4);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-white) 0%, var(--accent-violet) 50%, var(--primary-white) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShift 8s ease-in-out infinite;
    letter-spacing: -0.03em;
}

@keyframes titleShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    color: var(--medium-gray);
    line-height: 1.5;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

.hero-paragraph {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--medium-gray);
    line-height: 1.5;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

/* Elegant feature cards */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 6rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 99, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 40px rgba(139, 99, 255, 0.1);
    backdrop-filter: blur(20px);
}

    .feature-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan), var(--accent-emerald));
        background-size: 200% 100%;
        animation: borderFlow 3s linear infinite;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

@keyframes borderFlow {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 99, 255, 0.5);
    box-shadow: 0 20px 60px rgba(139, 99, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(139, 99, 255, 0.1), rgba(0, 245, 255, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, rgba(139, 99, 255, 0.2), rgba(0, 245, 255, 0.2));
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-white);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.feature-description {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.6;
    font-weight: 400;
}

/* Timeline section */
.timeline-section {
    width: 100%;
    max-width: 600px;
    margin-bottom: 4rem;
}

.timeline-header {
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-white);
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    font-size: 1rem;
    color: var(--medium-gray);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(to bottom, var(--accent-violet), var(--accent-emerald));
        transform: translateX(-50%);
    }

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

    .timeline-item:nth-child(odd) {
        flex-direction: row;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        flex-direction: row-reverse;
        text-align: left;
    }

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(139, 99, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0 2rem;
    box-shadow: 0 4px 20px rgba(139, 99, 255, 0.1);
    animation: timelineSlide 1s ease-out;
    backdrop-filter: blur(20px);
}

@keyframes timelineSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-date {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-violet);
    margin-bottom: 0.5rem;
}

.timeline-title-item {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-white);
    margin-bottom: 0.3rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.4;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent-violet);
    border: 3px solid rgba(17, 17, 17, 1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--accent-violet);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .footer-link:hover {
        color: var(--accent-cyan);
    }

/* Loading states */
.loading-text {
    color: var(--medium-gray);
    font-style: italic;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.language-btn {
    background: rgba(139, 99, 255, 0.1);
    border: 1px solid rgba(139, 99, 255, 0.3);
    color: var(--accent-violet);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

    .language-btn:hover {
        background: rgba(139, 99, 255, 0.2);
        border-color: rgba(139, 99, 255, 0.5);
    }

    .language-btn.active {
        background: var(--accent-violet);
        color: var(--primary-white);
    }

/* Responsive design */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .hero-section {
        margin: 6rem 0 4rem;
    }

    .features-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .timeline::before {
        left: 1rem;
    }

    .timeline-item {
        flex-direction: row !important;
        text-align: left !important;
        margin-left: 2rem;
    }

    .timeline-content {
        margin: 0 0 0 1rem;
    }

    .timeline-dot {
        left: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .language-selector {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Header Actions - tilføj til slutningen af batchvision.css */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .login-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(139, 99, 255, 0.1);
        border: 1px solid rgba(139, 99, 255, 0.3);
        border-radius: 10px;
        padding: 0.5rem 1rem;
        color: var(--accent-violet);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

        .login-btn:hover {
            background: rgba(139, 99, 255, 0.2);
            border-color: rgba(139, 99, 255, 0.5);
            color: var(--primary-white);
            text-decoration: none;
            transform: translateY(-1px);
        }

    .login-icon {
        width: 16px;
        height: 16px;
    }

    /* Responsive for mobile */
    @media (max-width: 768px) {
        .header-actions {
            gap: 0.5rem;
        }

        .login-btn {
            padding: 0.4rem 0.8rem;
            font-size: 0.8rem;
        }

            .login-btn span {
                display: none;
            }
    }

    /* Logout Button */
    .logout-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 107, 107, 0.1);
        border: 1px solid rgba(255, 107, 107, 0.3);
        border-radius: 10px;
        padding: 0.5rem 1rem;
        color: var(--accent-coral);
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.3s ease;
        cursor: pointer;
        font-family: 'Sora', sans-serif;
    }

        .logout-btn:hover {
            background: rgba(255, 107, 107, 0.2);
            border-color: rgba(255, 107, 107, 0.5);
            color: var(--primary-white);
            transform: translateY(-1px);
        }

    .logout-icon {
        width: 16px;
        height: 16px;
    }

    /* Responsive for mobile */
    @media (max-width: 768px) {
        .logout-btn {
            padding: 0.4rem 0.8rem;
            font-size: 0.8rem;
        }

            .logout-btn span {
                display: none;
            }
    }

    // Add CSS styles for context menu (add this to your CSS file or in a style tag)
    const contextMenuStyles = `
    .context-menu-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        color: var(--medium-gray);
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 0.9rem;
    }

    .context-menu-item:hover {
        background: rgba(139, 99, 255, 0.2) !important;
        color: var(--accent-violet);
    }

    .context-menu-separator {
        height: 1px;
        background: rgba(139, 99, 255, 0.2);
        margin: 0.5rem 0;
    }

    .context-menu-icon {
        flex-shrink: 0;
        width: 16px;
        height: 16px;
    }

    .dashboard-message {
        font-family: 'Sora', sans-serif;
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    /* Favorite indicator for menu items */
    .menu-item[data-in-favorites="true"]::after {
        content: '★';
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--accent-emerald);
        font-size: 0.8rem;
        opacity: 0.8;
    }

    .menu-item[data-in-favorites="true"] {
        position: relative;
    }

    /* Favorite star indicator with subtle glow */
    .menu-item.is-favorite .menu-item-icon {
        color: var(--accent-emerald);
        filter: drop-shadow(0 0 3px rgba(0, 212, 163, 0.3));
    }

    /* Hover effects for favorite items */
    .menu-item[data-in-favorites="true"]:hover {
        background: rgba(0, 212, 163, 0.1);
        border-left: 3px solid var(--accent-emerald);
        padding-left: calc(0.75rem - 3px);
    }

    /* Context menu styling improvements */
    .context-menu-item[data-action="remove-favorite"] {
        color: var(--accent-coral);
    }

        .context-menu-item[data-action="remove-favorite"]:hover {
            background: rgba(255, 107, 107, 0.2) !important;
            color: var(--accent-coral);
        }
}
