/* 宇宙主题样式 - Journal Entries */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;600;700&family=M+PLUS+1p:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Exo+2:wght@300;400;500;600;700&display=swap');

/* Logo 容器 */
.cosmic-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.cosmic-logo-container img {
    height: 4rem;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(255, 215, 0, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cosmic-logo-container:hover img {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 8px 30px rgba(255, 215, 0, 0.5));
}

/* 星星动画 */
.cosmic-star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

.cosmic-star::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 8px;
    background: white;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.cosmic-star::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 1px;
    background: white;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

/* 行星动画 */
.cosmic-planet {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #FFD700, #FF6347, #4f46e5);
    position: relative;
    animation: orbit 20s linear infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    flex-shrink: 0;
}

.cosmic-planet::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -4px;
    right: -4px;
    bottom: -2px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    animation: ringRotate 12s linear infinite;
}

/* Logo 文字 */
.cosmic-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.cosmic-logo-text {
    font-family: 'M PLUS 1p', 'Noto Sans JP', 'Inter', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #FFD700 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: galaxyShift 6s ease-in-out infinite;
    letter-spacing: -0.02em;
}

.cosmic-subtitle {
    font-family: 'M PLUS 1p', 'Noto Sans JP', 'Inter', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    color: #6b7280;
    letter-spacing: 0.05em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.cosmic-logo-container:hover .cosmic-subtitle {
    opacity: 1;
    color: #4f46e5;
}

/* 动画 Keyframes */
@keyframes galaxyShift {
    0%, 100% { background-position: 0% 50%; }
    20% { background-position: 80% 20%; }
    40% { background-position: 100% 80%; }
    60% { background-position: 20% 100%; }
    80% { background-position: 50% 30%; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    25% { opacity: 1; transform: scale(1.2); }
    50% { opacity: 0.6; transform: scale(0.8); }
    75% { opacity: 1; transform: scale(1.1); }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(25px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(25px) rotate(-360deg); }
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 主导航栏 */
.main-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* 移动端优化 */
@media (max-width: 1023px) {
    .cosmic-logo-container {
        gap: 8px;
    }

    .cosmic-logo-container img {
        height: 3rem;
    }

    .cosmic-logo-text {
        font-size: 1rem;
        line-height: 1.1;
    }

    .cosmic-subtitle {
        font-size: 0.625rem;
    }

    .cosmic-planet {
        width: 12px;
        height: 12px;
        animation: orbit 15s linear infinite;
    }

    .cosmic-planet::before {
        top: -1px;
        left: -2px;
        right: -2px;
        bottom: -1px;
    }
}
