/* ============================================
   Myst Echo ナビゲーションスタイル
   ============================================ */

.myst-echo-navigation {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    padding: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* ブランド */
.nav-brand {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
}

.brand-link:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(138, 43, 226, 0.9);
}

.brand-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.8));
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(5deg); }
}

.brand-text {
    background: linear-gradient(135deg, #fff 0%, rgba(138, 43, 226, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* メニュー */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3) 0%, rgba(102, 126, 234, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link-primary {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.8) 0%, rgba(102, 126, 234, 0.8) 100%);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.5);
}

.nav-link-primary:hover {
    box-shadow: 0 6px 25px rgba(138, 43, 226, 0.7);
    transform: translateY(-3px);
}

.nav-link-logout {
    color: rgba(255, 107, 107, 0.8);
}

.nav-link-logout:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.link-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.link-text {
    white-space: nowrap;
}

/* モバイルメニュー */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 10001;
}

.toggle-line {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        border-left: 2px solid rgba(138, 43, 226, 0.3);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        gap: 10px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 16px 20px;
        border-radius: 12px;
    }
    
    .nav-container {
        padding: 12px 20px;
    }
}

/* ナビゲーションオーバーレイ（モバイル） */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

