/* Profile Dropdown - Floating Cards Design */

/* Note: Container positioning is handled in homescreen.css */

/* Floating Cards Dropdown */
.profile-cards-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: auto;
    min-width: 320px;
    max-width: 400px;
    max-height: min(70vh, 520px);
    padding: 6px;
    border-radius: 24px;
    background: rgba(6, 84, 97, 0.08);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none; /* Hidden by default */
    overflow-y: auto;
}

.profile-cards-dropdown::-webkit-scrollbar {
    width: 6px;
}

.profile-cards-dropdown::-webkit-scrollbar-thumb {
    background: rgba(6, 74, 71, 0.4);
    border-radius: 999px;
}

.profile-cards-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.profile-cards-dropdown.show {
    display: block;
    animation: dropdownSlideIn 0.3s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Profile Card */
.profile-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 10px 25px rgba(6, 74, 71, 0.08);
    border: 2px solid rgba(6, 74, 71, 0.1);
    min-height: 82px;
    color: #064A47;
}

.profile-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Current User Card (highlighted) */
.current-user-card .profile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.current-user-card .profile-name {
    color: white;
    font-weight: 600;
}

/* Profile Avatar - Dropdown Specific */
.profile-card .profile-avatar {
    width: 64px !important;
    height: 64px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    border: none !important;
}

.profile-emoji {
    font-size: 2.4rem;
    line-height: 1;
}

/* Remove legacy avatar color styles */

/* Profile Name */
.profile-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #064A47;
    flex: 1;
}

/* Manage Profiles Card */
.manage-card {
    background: #ffffff;
    border: 2px dashed rgba(6, 74, 71, 0.25);
}

.manage-card:hover {
    transform: translateX(-5px) scale(1.02);
}

.manage-avatar {
    background: transparent !important;
    font-size: 1.6rem;
}

.manage-card .profile-name {
    color: #064A47;
    font-weight: 600;
}

/* Sleep Card (replaces Logout) */
.logout-card {
    background: #ffffff;
    border: 2px solid rgba(52, 73, 94, 0.2);
}

.logout-card:hover {
    transform: translateX(-5px) scale(1.02);
}

.logout-avatar {
    background: transparent !important;
    font-size: 1.6rem;
}

.logout-card .profile-name {
    color: #344a5e;
    font-weight: 600;
}

/* Other Children Cards Container */
.other-children-cards {
    margin-bottom: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-cards-dropdown {
        min-width: 280px;
        right: -10px;
    }
    
    .profile-card {
        padding: 14px 18px;
        max-height: 100px;
        height: 100px;
    }
    
    .profile-card .profile-avatar {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem;
        border: none !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
    
    .profile-name {
        font-size: 1rem;
    }
}

/* Animation for individual cards */
.profile-card {
    animation: cardFadeIn 0.3s ease forwards;
    opacity: 0;
}

.profile-card:nth-child(1) { animation-delay: 0.05s; }
.profile-card:nth-child(2) { animation-delay: 0.1s; }
.profile-card:nth-child(3) { animation-delay: 0.15s; }
.profile-card:nth-child(4) { animation-delay: 0.2s; }
.profile-card:nth-child(5) { animation-delay: 0.25s; }

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

