/* =========================================
   アカウント・プロフィールメニュー
   ========================================= */

.dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* 枠組みとしてのプロフィールアイコン（背景画像やMaterial Symbolを入れる） */
.profile-icon-wrapper {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    transition: transform 0.2s;
    background-color: #333; /* デフォルトの背景色 */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.profile-icon-wrapper:hover {
    transform: scale(1.1);
}

.profile-icon-fallback {
    font-size: 24px;
    display: block; /* デフォルトは表示 */
}

/* メニュー本体 */
.account-dropdown {
    position: absolute;
    top: 55px; /* アイコンの下 */
    right: 0;
    width: 250px;
    background: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    color: white;
}

.dropdown-container.active .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}



/* メニューのヘッダー部分 */
.dropdown-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
}

.dropdown-profile-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dropdown-profile-fallback {
    font-size: 28px;
    display: block;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
}

.dropdown-username {
    font-size: 1rem;
    font-weight: bold;
}

.dropdown-subtext {
    font-size: 0.75rem;
    color: var(--gray-text);
}

/* メニューのリスト部分 */
.dropdown-menu-list {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.dropdown-menu-list li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
    gap: 12px;
}

.dropdown-menu-list li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dropdown-menu-list li a .material-symbols-outlined {
    font-size: 20px;
    color: #b3b3b3;
    transition: color 0.2s;
}

.dropdown-menu-list li a:hover .material-symbols-outlined {
    color: white;
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

/* モバイル対応の上書き */
@media (max-width: 480px) {
    .profile-icon-wrapper {
        width: 30px;
        height: 30px;
    }
    .profile-icon-fallback {
        font-size: 20px;
    }
}
