<template>
    <div class="page-header">
        <div class="logos-container">
            <div class="logo-item">
                <img src="../assets/images/companies_images/deepkin_logo.png" alt="DeepKin" class="logo-image" @click="navigateTo('/')"/>
            </div>
        </div>
        <div class="menu-container">
            <span class="menu-item" @click="navigateTo('/live')">Live</span>
            <span class="menu-item" @click="navigateTo('/leadboard')">Leadboard</span>
            <span class="menu-item" @click="navigateTo('/add-asset')">Agent Arena</span>
        </div>
    </div>
</template>

<script>
export default {
    methods: {
        navigateTo(path) {
            this.$router.push(path);
        }
    }
}
</script>
<style scoped>
.page-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1rem;
}
.menu-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-right: 2rem;
}
.menu-item {
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f1f33;
}
.menu-item:hover {
    color: #6b7280;
}
.title-container {
    text-align: center;
}


.logos-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0;
}

.logo-item {
    flex-shrink: 0;
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem;
    transition: transform 0.2s ease;
}

.logo-item:hover {
    transform: translateY(-2px);
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@media (max-width: 768px) {
    .page-header {
        padding: 0.5rem 0.75rem;
        gap: 0.35rem;
    }
    
    .main-title {
        font-size: 1.75rem;
    }
    
    .logos-container {
        gap: 0.75rem;
    }
    
    .logo-item {
        width: 54px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .logos-container {
        gap: 0.5rem;
    }
    
    .logo-item {
        width: 47px;
        height: 17px;
    }
}
</style>