/* ======================
   페르소나 메뉴 스타일
   ====================== */

.app-title-container {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    position: relative;
}

.app-title-container:hover {
    background: var(--bg-hover);
}

.title-chevron {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    transition: transform var(--transition-fast);
}

.app-title-container:hover .title-chevron {
    color: var(--accent-primary);
}

.app-title-container.active .title-chevron {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

/* 페르소나 메뉴 드롭다운 */
.persona-menu {
    position: absolute;
    top: 60px;
    left: 20px;
    width: 260px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    animation: menuSlideDown 0.2s ease-out;
    transform-origin: top left;
}

.persona-menu.hidden {
    display: none;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 메뉴 아이템 */
.persona-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
    border: 1px solid transparent;
}

.persona-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.persona-item.active {
    background: rgba(0, 255, 0, 0.05);
    /* 기본 accent-primary 투명도 */
    color: var(--accent-primary);
    border-color: var(--border-accent);
    font-weight: 600;
}

.light-mode .persona-item.active {
    background: rgba(16, 185, 129, 0.05);
}

.persona-item i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* 설명 텍스트 (옵션) */
.persona-desc {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-left: 36px;
    margin-top: 4px;
}

/* ======================
   페르소나별 대체 콘텐츠
   ====================== */

.persona-alt-content {
    text-align: center;
    padding: 48px 32px;
    margin: 32px auto;
    max-width: 480px;
}

.alt-content-icon {
    position: relative;
    font-size: 6rem;
    margin-bottom: 24px;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px currentColor);
}

.alt-content-icon .alt-second-icon {
    font-size: 3rem;
    position: absolute;
    top: -15px;
    right: -25px;
    animation: emojiPop 2s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px currentColor);
}

.alt-content-icon i {
    display: block;
}

.alt-content-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    animation: fadeInUp 0.6s ease-out;
}

.alt-content-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

/* 아이콘 떠다니는 애니메이션 */
@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* 이모지 팝업 애니메이션 */
@keyframes emojiPop {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(-10deg);
    }

    75% {
        transform: scale(1.1) rotate(10deg);
    }
}

/* 페이드인 업 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 전체 페이드인 */
.persona-alt-content.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 페르소나별 테마 색상 오버라이드 */
.persona-counselor .persona-item.active {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.3);
}

.persona-general .persona-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.3);
}